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.