[CMake] Add .la files to shared lib

Alexander Neundorf a.neundorf-work at gmx.net
Mon Mar 29 14:55:40 EDT 2010


On Monday 29 March 2010, Max Ivanov wrote:
> I am trying to compile shared lib dynamically linked with one set of
> libs and statically with anoter.  Static libs are provided by third
> party

This is only possible if this 3rd party static library has been built with the 
correct set of flags (-fPIC I think). And you have to use special linker 
flags when linking it. In general this is not advisable. Do you have to do it 
this way ?

Alex


More information about the CMake mailing list