[Coin-discuss] shared vs static libs

Ted Ralphs tkralphs at lehigh.edu
Wed Apr 4 17:16:13 EDT 2007


I think most of the libraries have a flag to just enable debugging for
that library alone. For instance, SYMPHONY has --enable-debug-symphony.
This doesn't allow fine-tuning of the optimization level for optimized
code, but it gives you some control.

Cheers,

Ted

Matthew Galati wrote:
> I was doing ../configure --enable-debug at base level, which means I had all debug libs, and apparently all static libs. It would be nice if you could somehow specify which dep libs should be compiled at debug vs optimized at the base level.
> 
> Something like:
> 
> ../configure --opt-levels=OptLevel.txt
> 
> OptLevels.txt:
>   App  -g
>   Lib1 -O2
>   Lib2 -g
>   ... 
>   LibX -O3
> ...
> 
> 
> -----Original Message-----
> From: coin-discuss-bounces at list.coin-or.org [mailto:coin-discuss-bounces at list.coin-or.org] On Behalf Of Ted Ralphs
> Sent: Wednesday, April 04, 2007 4:37 PM
> To: Discussions about open source software for Operations Research
> Subject: Re: [Coin-discuss] shared vs static libs
> 
> Andreas, correct me if I'm wrong, but you always get static libraries with --enable-debug, right? I don't think it's possible to override this behavior. You typically want static libraries when debugging, but I think if you specify that only a particular library should be compiled with debugging, then the others will be built shared, right?
> 
> Cheers,
> 
> Ted
> 
> Andreas Waechter wrote:
>> Hi Matt,
>>
>> Ok, here yes another answer:
>>
>> As Lou wrote, by default, shared libraries are built if this is 
>> supported by the system.  However, currently it doesn't work on Windows.
>>
>> If you only want static libraries, you specify --disable-shared.
>>
>> If you want both static and shared libraries, you specify --enable-static.
>>
>> I hope this helps,
>>
>> Andreas
>>
>> On Wed, 4 Apr 2007, Matthew Galati wrote:
>>
>>> With the new build system, how do I indicate that I want to use 
>>> shared libs instead of static (and vice versa).
>>>
>>> Thanks,
>>> Matt
>>>
>>>
>>> _______________________________________________
>>> 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
> 
> 
> --
> Dr. Ted Ralphs
> Associate Professor
> Industrial and Systems Engineering
> Lehigh University
> (610)758-4784
> tkralphs at lehigh.edu
> www.lehigh.edu/~tkr2
> _______________________________________________
> 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


-- 
Dr. Ted Ralphs
Associate Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2



More information about the Coin-discuss mailing list