Hi All,
I'm running an application that uses a handful of semi-standard
libraries (freetype, libpng, zlib). Before I switched over to cmake, I
was linking to the static version of those libraries, and my app seemed
to run fine on machines as long as it was a recent version of linux.
On 30.05.08 17:06:28, Eric Torstenson wrote:
Hi All,
I'm running an application that uses a handful of semi-standard
libraries (freetype, libpng, zlib). Before I switched over to cmake, I
was linking to the static version of those libraries, and my app seemed
to run fine on machines as
Daniel Sands wrote:
I have some static libraries and need to link them into my CMAKE
project's shared libraries. Is there a platform-independent way to
specify this? What I want can be expressed by the following:
g++ -shared -o libmylib.so my_obj_files.o -Wl,-whole-archive
-lmy_static_lib
I have some static libraries and need to link them into my CMAKE
project's shared libraries. Is there a platform-independent way to
specify this? What I want can be expressed by the following:
g++ -shared -o libmylib.so my_obj_files.o -Wl,-whole-archive
-lmy_static_lib -Wl,-no-whole-archive