[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] Static Linking C++ Library
From: Mike Melanson <mike () multimedia ! cx>
Date: 2006-09-19 18:20:26
Message-ID: 451034EA.9080204 () multimedia ! cx
[Download RAW message or body]
Brad King wrote:
> You can link the entire program statically if you don't have any of your
> own shared libraries. Then running "ldd myexe" will produce a message
> that the executable is not dynamically linked. This requires just
> adding "-static" to CMAKE_EXE_LINKER_FLAGS (or the appropriate option
> for your compiler).
Sounds simple enough. Except that there are 2 build targets for this
project that embody most of the same functionality: A static executable
and a shared library that other programs can call. That shared library
changes the rules a bit, doesn't it?
Thanks...
--
-Mike Melanson
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic