[Coin-discuss] shared vs static libs

Andreas Waechter andreasw at watson.ibm.com
Wed Apr 4 16:26:29 EDT 2007


Hi Matt,

> I think I am getting static libs... how can I tell. In the old days it was .a 
> or .so. My app doesn't seem to be picking up changes without a relink... so I 
> think I have static.
>
> Note, I am also doing --enable-debug configure. Is the default different for 
> debug vs optimized?

Ah! --enable-debug changes the default for the libraries to be static - 
because that makes running the debugger much easier.  You can overwrite 
this by both --enable-debug --enable-shared --disable-static

Cheers

Andreas

>
>> Matt,
>> 
>> 	You should get shared libraries by default, where available, at least
>> in the optimised build. The option --enable-shared (--disable-shared) will 
>> try
>> to force the issue. Similarly, --enable-static (--disable-static).
>> 
>> 	configure --help=recursive will get you a comprehensive listing of 
>> the
>> available options. You can specify any option in the top-level call to 
>> configure; they'll be passed along as the top level configure invokes 
>> configure in subdirectories.
>> 
>> 							Lou
>> 
>> _______________________________________________
>> Coin-discuss mailing list
>> Coin-discuss at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/coin-discuss
>> 
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>



More information about the Coin-discuss mailing list