[Coin-discuss] shared vs static libs
Matthew Galati
magh at lehigh.edu
Wed Apr 4 16:34:27 EDT 2007
got it. thanks!
> 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.
>>>
>
More information about the Coin-discuss
mailing list