Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2004-09-24 04:40:22 +0400
committerH.J. Lu <hjl.tools@gmail.com>2004-09-24 04:40:22 +0400
commit9ab64c4a445cd63346582229aa80427c14b3a318 (patch)
treeb3f79e66e654aa8631e8f6ef7d10959fdadd8ef3 /configure.in
parent940c2b1094b1de6651b61efbf7fd65bbc07a3b1c (diff)
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.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index b7e29761e..972409913 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)