From: Scott James Remnant Date: Sat, 1 Nov 2003 15:03:09 +0000 (+0000) Subject: * ltmain.in: When relinking, place the -L parameter containing X-Git-Tag: release-1-9b~281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c75128d25d933c003735e0ef4c8858892b06838c;p=thirdparty%2Flibtool.git * ltmain.in: When relinking, place the -L parameter containing the installation prefix directory after the intended destination, so we don't accidentally link against an older installed library. --- diff --git a/ChangeLog b/ChangeLog index 14260b12b..3ed799730 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-11-01 Scott James Remnant + + * ltmain.in: When relinking, place the -L parameter containing + the installation prefix directory after the intended destination, + so we don't accidentally link against an older installed library. + 2003-11-01 Peter O'Gorman * tests/mdemo2/Makefile.am: Let mdemo2 find ltdl.h again. diff --git a/ltmain.in b/ltmain.in index 284d08dbe..0ea47bc89 100644 --- a/ltmain.in +++ b/ltmain.in @@ -2427,7 +2427,7 @@ EOF if test -n "$inst_prefix_dir"; then case "$libdir" in [\\/]*) - add_dir="-L$inst_prefix_dir$libdir $add_dir" + add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi @@ -2499,7 +2499,7 @@ EOF if test -n "$inst_prefix_dir"; then case "$libdir" in [\\/]*) - add_dir="-L$inst_prefix_dir$libdir $add_dir" + add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi