diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2004-09-24 00:40:22 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2004-09-24 00:40:22 +0000 |
commit | 315b3b02cfd1467b6e10bb0a0e4f2e25bba10390 (patch) | |
tree | ad899afc859beada911ad44dcd6e084b22f96c8c /configure.in | |
parent | 7895455da507db5f83c1a9dfc65cfc524c211012 (diff) | |
download | fsf-binutils-gdb-315b3b02cfd1467b6e10bb0a0e4f2e25bba10390.zip fsf-binutils-gdb-315b3b02cfd1467b6e10bb0a0e4f2e25bba10390.tar.gz fsf-binutils-gdb-315b3b02cfd1467b6e10bb0a0e4f2e25bba10390.tar.bz2 |
2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.tpl (REALLY_SET_LIB_PATH): Add @SET_GCC_LIB_PATH@.
(HOST_EXPORTS]): Add @SET_GCC_LIB_PATH@. Set and export
SET_GCC_LIB_PATH_CMD.
(BASE_TARGET_EXPORTS): Likewise.
* Makefile.in: Regenerated.
* configure.in (SET_GCC_LIB_PATH): Set and substitute.
* configure: Regenerated.
config/
2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
* gcc-lib-path.m4: New file.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b7e2976..9724099 100644 --- a/configure.in +++ b/configure.in @@ -2297,4 +2297,24 @@ case ${enable_werror} in esac AC_SUBST(stage2_werror_flag) +# If gcc is built natively with shared library enabled, set +# $RPATH_ENVVAR to make sure the newly built gcc shared librares are +# used. +SET_GCC_LIB_PATH= +if test -d ${srcdir}/gcc && test x${is_cross_compiler} = xno; then + case "${enable_shared}" in + no | "") ;; + *) + eval "d=\$$RPATH_ENVVAR" + if test x"$d" != x; then + d="$pwd/gcc:$d" + else + d="$pwd/gcc" + fi + SET_GCC_LIB_PATH="\$(RPATH_ENVVAR)=$d; export \$(RPATH_ENVVAR);" + ;; + esac +fi +AC_SUBST(SET_GCC_LIB_PATH) + AC_OUTPUT(Makefile) |