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: Peter O'Gorman
Subject: bug#9728: Incorrect -L flags order for HP-UX
Date: Thu, 13 Oct 2011 20:48:45 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Thunderbird/3.1.14

On 10/13/2011 06:54 PM, Vincent Lefevre wrote:
On 2011-10-13 18:21:35 -0500, Peter O'Gorman wrote:
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.

Or perhaps the -L shouldn't be added at all automatically, but should
be specified in the Makefile.am file?

For instance, should -L$(top_builddir)/src/.libs be added to AM_LDFLAGS
in tests/Makefile.am?

Since $(AM_LDFLAGS) appears before $(LDFLAGS) in the LINK command,
this should solve the problem. This -L flag would then be used also
on systems that don't need it, but I don't think this is a problem.


That might work.

Peter





reply via email to

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