bug-libtool
[Top][All Lists]
Advanced

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

bug#9728: Incorrect -L flags order for HP-UX


From: Vincent Lefevre
Subject: bug#9728: Incorrect -L flags order for HP-UX
Date: Thu, 13 Oct 2011 11:26:56 +0200
User-agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13)

Hi Peter,

On 2011-10-12 21:52:36 -0500, Peter O'Gorman wrote:
> Unfortunately this is a fairly common problem.

Will this eventually be fixed? For instance libtool/automake could
put the -Lrelative/path in a variable that would appear before
$(LDFLAGS).

Otherwise the autoconf manual should be corrected, as it currently
says to use LDFLAGS for -L options.

> If the flags were added by the user, they could set LIBS=-L/opt/gnu/lib
> instead on some platfroms, but that won't work on HP-UX either because its
> linker is rather strict that -L flags for paths that contain the library be
> ordered before the -l flag for that library.
> 
> Anyway, the problem can be avoided by not putting the -L and -l flags for
> gmp in LDFLAGS and LIBS, instead put both in e.g. GMP_LIBS,
> (GMP_LIBS="-L/opt/gnu/lib -lgmp"), then add $(GMP_LIBS) to LDADD.

OK, I'll try that.

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)





reply via email to

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