[Ilugc] static linking of libraries using libtool
vivek at unleashnetworks.com
Mon Feb 15 22:54:54 IST 2010
anantha narasimhan wrote:
> I am trying to build an rpm for an application. This application needs to
> link with libhtp library. libhtp has a few undefined symbols, for which it
> depends on libz.
> 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"
use this (in this order)
-static -lhtp -dynamic -lz -ldag
any reason why you are using libtool ?
if you are picky about static and dynamic libs - chances are you dont
More information about the ilugc