Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
authorNathanael Nerode <neroden@gcc.gnu.org>
Thu, 3 Oct 2002 19:06:16 +0000 (19:06 +0000)
committerNathanael Nerode <neroden@gcc.gnu.org>
Thu, 3 Oct 2002 19:06:16 +0000 (19:06 +0000)
2002-10-03  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
* configure.in: Make SET_LIB_PATH substitution more autoconfy.
* Makefile.in: Regenerate.

From-SVN: r57783

ChangeLog
Makefile.in
Makefile.tpl
configure.in

index 05936b20bc6017380a46d078f8008c38e48999ed..8ba652d9c015b0260e6b2edaab90edf6710bee67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-10-03  Nathanael Nerode  <neroden@gcc.gnu.org>
 
+       * Makefile.tpl: Make SET_LIB_PATH substitution more autoconfy.
+       * configure.in: Make SET_LIB_PATH substitution more autoconfy.
+       * Makefile.in: Regenerate.
+
        * Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
        * configure.in: Make RPATH_ENVVAR substitution more autoconfy.
        * Makefile.in: Regenerate.
index 6d5acc65b44639ca0ed79662e4eb058701fe242b..ce4bffa88a4c54b18382f4c72dc819a89c4f2d6f 100644 (file)
@@ -201,7 +201,7 @@ BUILD_CONFIGARGS = @build_configargs@
 
 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
 # was used.
-SET_LIB_PATH =
+SET_LIB_PATH = @SET_LIB_PATH@
 
 # This is the name of the environment variable used for the path to
 # the libraries.  This may be changed by configure.in.
index 2c72994066cda278e6035a3062e9b5a261d6c7cb..5ef7d55fa3ffa88ec173f8768f9c5c4498f3907f 100644 (file)
@@ -204,7 +204,7 @@ BUILD_CONFIGARGS = @build_configargs@
 
 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
 # was used.
-SET_LIB_PATH =
+SET_LIB_PATH = @SET_LIB_PATH@
 
 # This is the name of the environment variable used for the path to
 # the libraries.  This may be changed by configure.in.
index 98f56c34ebf88264666bed750b662a453e5a8ead..8988bef2782aa3c29410606d47ff3d37ed93f7c2 100644 (file)
@@ -1321,11 +1321,13 @@ esac
 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
 # binutils tools will find libbfd.so.
 if test "${shared}" = "yes" ; then
-  sed -e 's/^SET_LIB_PATH[     ]*=.*$/SET_LIB_PATH = $(REALLY_SET_LIB_PATH)/' \
-      Makefile > Makefile.tem
-  rm -f Makefile
-  mv -f Makefile.tem Makefile
+  SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)"
+else
+  SET_LIB_PATH=
 fi
+sed -e "s/@SET_LIB_PATH@/${SET_LIB_PATH}/" Makefile > Makefile.tem
+rm -f Makefile
+mv -f Makefile.tem Makefile
 
 
 case "${host}" in