From e2a593302b371d360926d5cb0439c3aa3b64f039 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Fri, 23 Jan 2004 06:03:52 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ ltmain.in | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa0e0eba0..03bb55711 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-01-23 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. + 2004-01-23 Scott James Remnant * tests/demo-nopic.test: Skip test on hppa, which don't like diff --git a/ltmain.in b/ltmain.in index 462eb6799..9ccfaec35 100644 --- 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 -- 2.47.3