On Mon, Feb 15, 2010 at 8:36 PM, Shakthi Kannan <[email protected]>wrote:
> Hi, > > --- On Mon, Feb 15, 2010 at 9:06 AM, anantha narasimhan > <[email protected]> wrote: > | I am trying to build an rpm for an application. This application needs to > | link with libhtp library. > \-- > > Include this in the BuildRequires section of the .spec file? > > --- > | I wanted to link libhtp statically to the application, hence i overrode > | LDFLAGS in the SPEC file to point to the location of libhtp.a. > | > | export LDFLAGS="-L`pwd` -lz -ldag -O3 -mtune=generic" > \-- > > Statically linking means, use of the word '-static', wherein the > library is built into the application, not just giving the location of > the library. > -static links "all" libraries statically to the application ? I am only interested to link a particular library statically. > > As per Fedora packaging recommendations you should always link with > shared libraries and avoid static libraries. Please refer: > > > http://fedoraproject.org/wiki/Packaging/Guidelines#Packaging_Static_Libraries > yes, i am aware of this. This is just for some testing/troubleshooting. (also saves me a few ticks, when i have to blow out the rpm onto environments which are crippled and files needs to be copied over manually). > SK > > -- > Shakthi Kannan > http://www.shakthimaan.com > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > -- keep klicking Anantha Narasimhan The box said..... "Requires Windows XP or better". So, I installed Linux. _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
