GNU bug report logs - #9728
Incorrect -L flags order for HP-UX

Previous Next

Package: libtool;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Tue, 11 Oct 2011 14:00:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Peter O'Gorman <peter <at> pogma.com>
To: vincent <at> vinc17.net, 9728 <at> debbugs.gnu.org
Subject: bug#9728: Incorrect -L flags order for HP-UX
Date: Thu, 13 Oct 2011 18:21:35 -0500
On 10/13/2011 06:06 PM, Vincent Lefevre wrote:

>
>> Something like the attached patch should work for mpfr.
>
> There are several problems with it. First, I assume that LOADLIBES
> should contain $(AM_CPPFLAGS) too. But the main problem is the
> inconsistent flags order: in the compile command, $(AM_CPPFLAGS)
> appears before $(CPPFLAGS), while in the link command, $(GMP_LIBS)
> appears after $(LDFLAGS). This means that if the user uses both
> --with-gmp and CPPFLAGS/LDFLAGS to provide search directories,
> the include and library search paths will be inconsistent.
>

Ok, this is not a libtool bug though. When it can libtool will add the 
path to the .so instead of -L -l for libraries in the build dir. On many 
systems this works, but HP-UX is one of those systems where it does not, 
so -L -l are used instead. This can cause problems when an older version 
of the library is installed in $prefix.

Sorry that I can't help more.

Thanks,
Peter




This bug report was last modified 13 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.