diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2004-09-24 00:37:08 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2004-09-23 17:37:08 -0700 |
commit | 4c4a5bbc407f06d6ac8e6cc312c7aa8b902168f3 (patch) | |
tree | 199fa5abe2deb0dd8df27559e0f06d2e98daad55 /configure.in | |
parent | 57ce4e0dceda29a4496e57b9b32930ccaee9d369 (diff) | |
download | gcc-4c4a5bbc407f06d6ac8e6cc312c7aa8b902168f3.tar.gz |
re PR bootstrap/17369 ([ia64] Bootstrap failure with binutils-2.15.90.0.1.1)
2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/17369
* 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>
PR bootstrap/17369
* gcc-lib-path.m4: New file.
gcc/
2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/17369
* Makefile.in (@set_gcc_lib_path@): Added.
* configure.ac: Include ../config/gcc-lib-path.m4. Use
TL_AC_GNU_MAKE_GCC_LIB_PATH.
* configure: Regenerated.
From-SVN: r87999
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 b7e29761e7f..97240991399 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) |