Commit fe3d5b7f by Nathanael Nerode

Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.

2002-10-03  Nathanael Nerode  <neroden@gcc.gnu.org>

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

From-SVN: r57782
parent 3db03e43
2002-10-03 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.tpl: Make RPATH_ENVVAR substitution more autoconfy.
* configure.in: Make RPATH_ENVVAR substitution more autoconfy.
* Makefile.in: Regenerate.
2002-10-02 Janis Johnson <janis187@us.ibm.com> 2002-10-02 Janis Johnson <janis187@us.ibm.com>
* MAINTAINERS: Add myself as web pages co-maintainer. * MAINTAINERS: Add myself as web pages co-maintainer.
......
...@@ -205,7 +205,7 @@ SET_LIB_PATH = ...@@ -205,7 +205,7 @@ SET_LIB_PATH =
# This is the name of the environment variable used for the path to # This is the name of the environment variable used for the path to
# the libraries. This may be changed by configure.in. # the libraries. This may be changed by configure.in.
RPATH_ENVVAR = LD_LIBRARY_PATH RPATH_ENVVAR = @RPATH_ENVVAR@
# This is the list of directories that may be needed in RPATH_ENVVAR # This is the list of directories that may be needed in RPATH_ENVVAR
# so that programs built for the host machine work. # so that programs built for the host machine work.
......
...@@ -208,7 +208,7 @@ SET_LIB_PATH = ...@@ -208,7 +208,7 @@ SET_LIB_PATH =
# This is the name of the environment variable used for the path to # This is the name of the environment variable used for the path to
# the libraries. This may be changed by configure.in. # the libraries. This may be changed by configure.in.
RPATH_ENVVAR = LD_LIBRARY_PATH RPATH_ENVVAR = @RPATH_ENVVAR@
# This is the list of directories that may be needed in RPATH_ENVVAR # This is the list of directories that may be needed in RPATH_ENVVAR
# so that programs built for the host machine work. # so that programs built for the host machine work.
......
...@@ -1325,17 +1325,18 @@ if test "${shared}" = "yes" ; then ...@@ -1325,17 +1325,18 @@ if test "${shared}" = "yes" ; then
Makefile > Makefile.tem Makefile > Makefile.tem
rm -f Makefile rm -f Makefile
mv -f Makefile.tem Makefile mv -f Makefile.tem Makefile
case "${host}" in
*-*-hpux*)
sed -e 's/^RPATH_ENVVAR[ ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \
Makefile > Makefile.tem
rm -f Makefile
mv -f Makefile.tem Makefile
;;
esac
fi fi
case "${host}" in
*-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
*) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
esac
sed -e "s/@RPATH_ENVVAR@/${RPATH_ENVVAR}/" Makefile > Makefile.tem
rm -f Makefile
mv -f Makefile.tem Makefile
# Base args. Strip norecursion, cache-file, srcdir, host, build, target. # Base args. Strip norecursion, cache-file, srcdir, host, build, target.
# These are the ones we might not want to pass down to subconfigures. # These are the ones we might not want to pass down to subconfigures.
baseargs=`echo "${arguments}" | \ baseargs=`echo "${arguments}" | \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment