]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: When relinking, place the -L parameter containing
authorScott James Remnant <scott@netsplit.com>
Fri, 23 Jan 2004 06:03:52 +0000 (06:03 +0000)
committerScott James Remnant <scott@netsplit.com>
Fri, 23 Jan 2004 06:03:52 +0000 (06: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 aa0e0eba06c9dd0e950469d5a59a0c846f4961db..03bb557115aecbd98293f3f3aad5a003cc7cda7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-23  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.
+
 2004-01-23  Scott James Remnant  <scott@netsplit.com>
 
        * tests/demo-nopic.test: Skip test on hppa, which don't like
index 462eb67991ef5f0b8348b8b770f5a46ab1b75588..9ccfaec35196eecc110b56b261a5ec3024cf50e8 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -2392,7 +2392,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
@@ -2464,7 +2464,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