Re: static

"Kellogg, Oliver" <[email protected]> Thu, 15 Apr 2010 08:51:38 +0200
Newsgroups gmane.comp.lang.ada.sockets
Message-ID <[email protected]>
On Thursday, April 08, 2010 10:18 AM, Samuel Tardieu <[email protected]>
wrote:
> 
> Oliver> For --cflags, we want -A not -I (to avoid recompilations)
> 
> What I don't get is what triggers the recompilations in the first
> place. When I compile applications using AdaSockets, it does not get
> recompiled.

Hmm, perhaps it was some misconfiguration on my part.
I will change our cflags back to the original ones and retest (but that
may take a few days.)

> Anyway, you can get what you want by using:
> 
>   `adasockets-config --cflags | sed -e 's/-I/-A/'`
> 
> instead of
> 
>   `adasockets-config --cflags`

Okay.

> Oliver> For --lflags, we want the static library not the 
> dynamic library
> 
> Oh, and only for AdaSockets, I get it. You can use
> 
>   `adasockets-config --variable=libdir`/libadasockets.a
> 
> Example:
> 
> % echo `adasockets-config --variable=libdir`/libadasockets.a
> /usr/lib/libadasockets.a
> 
> Does it help?
 
Yes, that works fine.

Thanks,

Oliver
_______________________________________________
AdaSockets mailing list
[email protected]
http://lists.rfc1149.net/mailman/listinfo/adasockets