libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Favoring static linking at configure time


From: Benoit Sigoure
Subject: Re: Favoring static linking at configure time
Date: Sun, 16 Dec 2007 23:41:20 +0100

On Dec 16, 2007, at 7:56 PM, Peter Rosin wrote:

On Sun, Dec 16, 2007 at 04:23:41PM +0100, Benoit Sigoure wrote:
OK So finally I solved the whole thing by adding /abs/path/to/libfoo.
$libext (instead of -lfoo) in $LIBS ($libext is computed by libtool,
most of the time it's .a but it happens to be .lib at least for
MSVC).  This is probably fragile but at least it works on GNU/Linux
(GCC, ICC), OSX (Apple GCC) and Windows (Cygwin, MinGW, MSVC).

It is fragile. There are several ways to use MSVC with libtool. The
patches I have worked on does not name the static library according
to your pattern, so your scheme would break with them.

I don't know if you care though...


I do care but I'm trying to find a good compromise between simplicity of the code and its portability. Moreover, the fact your patches lead to different names is irrelevant here, since I'm in a situation where I only check for Boost libraries (my macros are Boost specific) and Boost doesn't use Libtool so it won't follow your naming scheme.

Just out of curiosity, how are named the libraries with your patches?

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory






reply via email to

[Prev in Thread] Current Thread [Next in Thread]