the link line, reported and fix confirmed by Dan S. Camper.
+2004-04-29 Peter O'Gorman <peter@pogma.com>
+
+ * ltmain.in: Fix problem with .libs/.libs/libfoo.so appearing on
+ the link line, reported and fix confirmed by Dan S. Camper.
+
2004-04-20 Gary V. Vaughan <gary@gnu.org>
* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler
absdir="$libdir"
fi
else
- dir="$ladir/$objdir"
- absdir="$abs_ladir/$objdir"
- # Remove this search path later
- notinst_path="$notinst_path $abs_ladir"
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ fi
fi # $installed = yes
name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`