aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-11-24 12:46:07 +0000
committerJeff Law <law@gcc.gnu.org>1998-11-24 05:46:07 -0700
commitf6c2a93cc08ce7557bba4af7d67762ef5f7f2618 (patch)
tree8a73976bca86fefbab06d2bfcf3fa59a8924d517 /gcc
parent6970d948d654068f83d93a0cdbca419f59be36fc (diff)
downloadgcc-f6c2a93cc08ce7557bba4af7d67762ef5f7f2618.zip
gcc-f6c2a93cc08ce7557bba4af7d67762ef5f7f2618.tar.gz
gcc-f6c2a93cc08ce7557bba4af7d67762ef5f7f2618.tar.bz2
Makefile.in (HOST_AR): Define.
� * Makefile.in (HOST_AR): Define. (HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Similarly. (libcpp.a): Use the host tools explicitly. (STAGESTUFF): Add libcpp.a. From-SVN: r23828
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/Makefile.in17
2 files changed, 21 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ada2358..635f475 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Tue Nov 24 13:40:06 1998 Jeffrey A Law (law@cygnus.com)
+
+ * Makefile.in (HOST_AR): Define.
+ (HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Similarly.
+ (libcpp.a): Use the host tools explicitly.
+ (STAGESTUFF): Add libcpp.a.
+
Tue Nov 24 09:33:49 1998 Nick Clifton <nickc@cygnus.com>
* config/m32r/m32r.md (movstrsi_internal): Describe changes made
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 4397866..bad2b17 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -114,6 +114,11 @@ RANLIB = ranlib
# Test to use to see whether ranlib exists on the system.
RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
+HOST_AR = ar
+HOST_AR_FLAGS = rc
+HOST_RANLIB = ranlib
+HOST_RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
+
# Compiler to use for compiling libgcc1.a.
# OLDCC should not be the GNU C compiler,
# since that would compile typical libgcc1.a functions such as mulsi3
@@ -677,7 +682,7 @@ STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \
gcov$(exeext) *.bp \
*.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop \
*.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack *.gcse \
- *.[si] \
+ *.[si] libcpp.a \
$(LANG_STAGESTUFF)
# Members of libgcc1.a.
@@ -1886,9 +1891,15 @@ cccp.o: cccp.c $(CONFIG_H) pcp.h version.c config.status system.h \
LIBCPP_OBJS = cpplib.o cpphash.o cppalloc.o cpperror.o cppexp.o cppfiles.o \
cppulp.o prefix.o version.o mbchar.o @extra_cpp_objs@
+# All the other archives built/used by this makefile are for targets. This
+# one is strictly for the host.
+#
+# For various reasons AR, RANLIB, etc are all set to the target tools and
+# must not be used here. Instead explicitly use the host versions.
+#
libcpp.a: $(LIBCPP_OBJS)
- $(AR) $(ARFLAGS) libcpp.a $(LIBCPP_OBJS)
- if $(RANLIB_TEST) ; then $(RANLIB) libcpp.a ; else true ; fi
+ $(HOST_AR) $(HOST_AR_FLAGS) libcpp.a $(LIBCPP_OBJS)
+ if $(HOST_RANLIB_TEST) ; then $(HOST_RANLIB) libcpp.a ; else true ; fi
cppmain$(exeext): cppmain.o libcpp.a $(LIBDEPS)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o cppmain$(exeext) cppmain.o \