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>2000-03-10 23:50:45 +0300
committerH.J. Lu <hjl.tools@gmail.com>2000-03-10 23:50:45 +0300
commit2dc5e3a3649cdd3bdf1a09ada4b7fbe739016984 (patch)
tree1da1060a341ca5c273b7d0f3a32f89b4ea4fa71e /Makefile.in
parent7fecc3e4d67cbc96af2a66648970edd57403f8e9 (diff)
2000-03-10 H.J. Lu <hjl@gnu.org>
* Makefile.in (all-gcc): Run ld/ld-new if necessary.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index beab8be4f..9eae8e65e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1414,6 +1414,17 @@ $(INSTALL_X11_MODULES): installdirs
# gcc is the only module which uses GCC_FLAGS_TO_PASS.
.PHONY: all-gcc
all-gcc:
+ # When configured with --enable-shared, libtool creates a
+ # script in the build directory which automatically relinks
+ # the program to search for shared libraries in the build
+ # directory. However, when ld/ld-new is called the first time
+ # from the new gcc, all the compiler environment variables are
+ # set to use the new gcc. ld/ld-new will use the new gcc to
+ # relink the new linker. It is incorrect. We cannot run
+ # ld/ld-new the first time from the new gcc. It is a very
+ # special case. We deal with it here.
+ -if test -f gcc/Makefile -a -x ld/ld-new -a -x ld/.libs/ld-new; then \
+ ld/ld-new -v >/dev/null 2>&1; fi
@if [ -f ./gcc/Makefile ] ; then \
r=`pwd`; export r; \
s=`cd $(srcdir); pwd`; export s; \