[BuildTools] RE: [Coin-discuss] shared vs static libs

Andreas Waechter andreasw at watson.ibm.com
Wed Apr 4 19:04:04 EDT 2007


Hi BuildToolers,

Matt brings up a few good points.

First of all, the documentation on the wiki is not up to date (and you can 
blame me for that, but I also only have some limited amount of time...). 
Neither project specific compilation flags (as we actually have them now), 
not project specific debug, verbosity etc flags are documented...

Also, the config.site example file is VERY short.  I thought that I 
actually put a better example in there, but I guess I didn't, sorry.

Laci, do you still have the one that we started on?  I guess I should do 
that now before I make a new BuildTools release.  (I fixed a few issues 
for AIX and Darwin).

Maybe the best is if I just bit into the bitter apple (does that translate 
from German...?!?) and update the config.site file to include some actual 
information and documentation.  After that, maybe someone else can update 
the Wiki....?

Cheers

Andreas


On Wed, 4 Apr 2007, 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
>


More information about the BuildTools mailing list