[Coin-discuss] shared vs static libs

Matthew Saltzman mjs at ces.clemson.edu
Wed Apr 4 16:21:32 EDT 2007


On Wed, 4 Apr 2007, Matthew Galati wrote:

> 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.

ldd <progname>

prints the shared libs required by <progname>.

>
> Note, I am also doing --enable-debug configure. Is the default different for 
> debug vs optimized?
>
>> 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
>

-- 
 		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs



More information about the Coin-discuss mailing list