GNU bug report logs -
#9728
Incorrect -L flags order for HP-UX
Previous Next
Full log
View this message in rfc822 format
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
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.