[Coin-discuss] shared vs static libs

Lou Hafer lou at cs.sfu.ca
Wed Apr 4 16:30:15 EDT 2007


Matt,

	Adding a bit more to previous replies:

	As far as I know, for unix systems it's still true that .so is shared
and .a is static.  The debug build does indeed default to static libraries, the
optimised build to shared.

	The place to track all this down is BuildTools/coin.m4.  The macro
AC_COIN_DEBUG_COMPILE sets up the --enable-debug option with the AC_ARG_ENABLE
macro.  (Options of the form --with are created with AC_ARG_WITH).

	At a quick glance, it looks like --enable-shared and --enable-static are
set up by the libtool initialisation macro.  I'd have to poke a bit to track it
down.

	As Andreas says, by calling AC_COIN_CREATE_LIBTOOL in the top level
configure.ac, you get all of this set up in a way that's reused by the various
packages that you pull in for your project. 

							Lou




More information about the Coin-discuss mailing list