diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-01-13 22:37:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-01-13 22:37:01 +0000 |
commit | 57cd2ea1404cfca25fd188dfb530cc3f23661fe5 (patch) | |
tree | 392657161c3a54fd72f6512956e8fbd02f9535cf /gcc | |
parent | de6cbba6ea41f2df3e5347b98ca4ed9442666363 (diff) | |
download | gcc-57cd2ea1404cfca25fd188dfb530cc3f23661fe5.zip gcc-57cd2ea1404cfca25fd188dfb530cc3f23661fe5.tar.gz gcc-57cd2ea1404cfca25fd188dfb530cc3f23661fe5.tar.bz2 |
Eliminated install-cross-tools
From-SVN: r3226
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/Makefile.in | 59 | ||||
-rw-r--r-- | gcc/cross-make | 9 |
2 files changed, 5 insertions, 63 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 4d2eb61..809a7bd 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -96,7 +96,7 @@ GCC_FOR_TARGET = ./xgcc -B./ # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET. # It omits XCFLAGS, and specifies -B./. # It also specifies -B$(tooldir)/ to find as and ld for a cross compiler. -GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(CROSS_GCC_CFLAGS) +GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) # Special flags for compiling enquire. # We disable optimization to make floating point more reliable. @@ -112,7 +112,6 @@ AR_FOR_TARGET = $(TARGET_TOOLPREFIX)ar AR_FOR_TARGET_FLAGS = rc RANLIB_FOR_TARGET = $(TARGET_TOOLPREFIX)ranlib RANLIB_TEST_FOR_TARGET = [ -f $(TARGET_TOOLPREFIX)ranlib ] -CROSS_TOOLS = # Dir to search for system headers. Overridden by cross-make. SYSTEM_HEADER_DIR = /usr/include @@ -541,7 +540,7 @@ libgcc1.conv: libgcc1.a # Use this as value of LIBGCC1 to inhibit use of libgcc1.c entirely. # Make an empty file instead. -libgcc1.null: $(CROSS_TOOLS) $(GCC_PASSES) +libgcc1.null: $(GCC_PASSES) echo "__foo () {}" > dummy.c $(GCC_FOR_TARGET) $(GCC_CFLAGS) -c dummy.c $(OLDAR) $(OLDAR_FLAGS) libgcc1.null dummy.o @@ -602,10 +601,7 @@ libgcc1.a: libgcc1.c $(CONFIG_H) $(LIB1FUNCS_EXTRA) config.status # Compiling libgcc2.a requires making sure that cc1, etc. have been compiled. # But recompiling cc1 should not force recompilation of libgcc2.a. # If you want to force recompilation, delete libgcc2.a. -# Depend on install-cross-tools to make sure we set up properly -# to run the assembler before we try compiling anything. -# install-cross-tools does nothing if not cross compiling. -libgcc2.ready: $(GCC_PASSES) $(CROSS_TOOLS) +libgcc2.ready: $(GCC_PASSES) -if [ -f libgcc2.ready ] ; then \ true; \ else \ @@ -1369,7 +1365,7 @@ install-native: install-common install-libgcc $(INSTALL_HEADERS) \ # Copy the files of cross compiler into directories where they will be run. install-cross: install-common install-common-headers \ - install-man install-cross-tools install-libgcc + install-man install-libgcc # Do nothing while making gcc with a cross-compiler. The person who # makes gcc for the target machine has to know how to put a complete @@ -1377,53 +1373,6 @@ install-cross: install-common install-common-headers \ install-build: force @echo You have to install gcc on your target machine by hand. -# Install the tools, libraries and header files for the target machine -# where cross-compilation will look for them. -# Use tooldir to find them. -install-cross-tools: install-dir -# The first if makes this a no-op except for a cross compiler. -# The /. after the dirname causes test to follow symlinks. -# Before making a link or an indirection script, -# we verify the desired file does not already exist. -# If a symlink does exist, then making a symlink would certainly fail, -# leading us to overwrite the real file through the symlink. - -if [ -f gcc-cross ] ; \ - then \ - if [ -d $(tooldir)/. ] ; \ - then \ - for file in as $(REAL_LD_NAME) ar nm ranlib; do \ - if [ -f $(libsubdir)/$$file ] ; \ - then true; \ - else \ - rm -rf $(libsubdir)/$$file; \ - $(SYMLINK) $(tooldir)/bin/$$file $(libsubdir)/$$file \ - || (echo "#!/bin/sh"; echo $(tooldir)/bin/$$file "$$@") > $(libsubdir)/$$file; \ - fi; \ - done; \ - for file in $(tooldir)/lib/*; do \ - if [ -f $$file ] ; \ - then \ - if [ -f $(libsubdir)/`basename $$file` ] ; \ - then true; \ - else \ - rm -rf $(libsubdir)/`basename $$file`; \ - $(SYMLINK) $$file $(libsubdir)/`basename $$file` \ - || $(INSTALL_DATA) $$file $(libsubdir)/`basename $$file`; \ - fi; \ - else true; \ - fi; \ - done; \ - if [ -d $(tooldir)/include/. ] ; then \ - rm -rf $(libsubdir)/sys-include; \ - $(SYMLINK) $(tooldir)/include $(libsubdir)/sys-include \ - || (if [ -d $(libsubdir)/sys-include ] ; then true ; else mkdir $(libsubdir)/sys-include ; fi; \ - (cd $(tooldir)/include; tar cf - .) | (cd $(libsubdir)/sys-include; tar xpf -)); \ - else true; fi; \ - else true; \ - fi; \ - else true; \ - fi; - # Run this on the target machine # to finish installation of cross compiler. install-cross-rest: install-float-h-cross diff --git a/gcc/cross-make b/gcc/cross-make index 1c57e73..5af66f0 100644 --- a/gcc/cross-make +++ b/gcc/cross-make @@ -1,6 +1,3 @@ -# This variable gets added to GCC_CFLAGS. -CROSS_GCC_CFLAGS = -B$(tooldir)/bin/ - # Expect user to provide libgcc1.a, # and give up immediately if the user has not done so. LIBGCC1 = libgcc1.cross @@ -13,12 +10,8 @@ OLDAR_FLAGS = $(AR_FOR_TARGET_FLAGS) RANLIB = $(RANLIB_FOR_TARGET) RANLIB_TEST = $(RANLIB_TEST_FOR_TARGET) -# Cause installation of the cross-compilation tools -# before we try to build libgcc.a. -CROSS_TOOLS = install-cross-tools - # Dir to search for system headers. Normally /usr/include. -SYSTEM_HEADER_DIR = $(libsubdir)/sys-include +SYSTEM_HEADER_DIR = $(tooldir)/include # Cause installation using install-cross. INSTALL_TARGET = install-cross |