]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: When relinking, place the -L parameter containing
authorScott James Remnant <scott@netsplit.com>
Sat, 1 Nov 2003 15:03:09 +0000 (15:03 +0000)
committerPeter O'Gorman <peter@pogma.com>
Sat, 1 Nov 2003 15:03:09 +0000 (15:03 +0000)
the installation prefix directory after the intended destination,
so we don't accidentally link against an older installed library.

ChangeLog
ltmain.in

index 14260b12ba9b90d4f1b1fd5f2b0164ba20eabe25..3ed799730967fa7bdcfdc5ff41f01237109934e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-01  Scott James Remnant  <scott@netsplit.com>
+
+       * 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  <peter@pogma.com>
 
        * tests/mdemo2/Makefile.am: Let mdemo2 find ltdl.h again.
index 284d08dbecbe5300842198a26e2fabae372fb275..0ea47bc893aac360218895f856a91f7f66f489db 100644 (file)
--- 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