[CMake] Creating static executables

Eric Noulard eric.noulard at gmail.com
Fri Jun 8 17:53:59 EDT 2007


2007/6/8, Ajay Divekar <ajay.divekar at guardiantechintl.com>:
> I tried your suggestion by setting
>
> SET_TARGET_PROPERTIES (bbb PROPERTIES LINK_FLAGS "-static -lc -lm
> -L/usr/local/lib/")
>
> The result is the same i.e. the executable generated is not completely static.
> Still has shared library dependencies. The output generated after doing ldd
> bbb is
>
>         libz.so.2 => /lib/libz.so.2 (0x28233000)
>         libm.so.3 => /lib/libm.so.3 (0x28243000)
>         libc.so.5 => /lib/libc.so.5 (0x2825e000)

Do you currently have the static version of those libs INSTALLED
on your system?


-- 
Erk


More information about the CMake mailing list