aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-06-20 23:36:33 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-06-20 23:36:33 +0000
commit6650a443a830b419596bbcb858684cc57f26dd8f (patch)
tree52a813428815205c02cb146db553a974d876bf69
parent60df8b81b300e12256a3123d7e76aadefd7f3e3f (diff)
downloadgcc-6650a443a830b419596bbcb858684cc57f26dd8f.zip
gcc-6650a443a830b419596bbcb858684cc57f26dd8f.tar.gz
gcc-6650a443a830b419596bbcb858684cc57f26dd8f.tar.bz2
* Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
From-SVN: r34623
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/Makefile.in6
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2ae556a..8e3bc38 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2000-06-20 Zack Weinberg <zack@wolery.cumb.org>
+ * Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
+
* Makefile.in: Remove all references to HOST_INTLLIBS.
* cpplex.c (parse_name): Don't warn about $ in identifiers if
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index ae9c6fb..3af0ade 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2002,10 +2002,12 @@ xsys-protos.h: $(GCC_PASSES) $(srcdir)/sys-protos.h deduced.h gen-protos Makefil
mv xsys-protos.hT xsys-protos.h
rm -rf fixtmp.c
-fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(HOST_LIBDEPS) \
+# This is nominally a 'build' program, but it's run only when host==build,
+# so we can (indeed, must) use $(LIBDEPS) and $(LIBS).
+fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(LIBDEPS) \
libcpp.a
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ fix-header.o \
- scan-decls.o scan.o libcpp.a $(HOST_LIBS) ../libiberty/libiberty.a
+ scan-decls.o scan.o libcpp.a $(LIBS)
fix-header.o: fix-header.c $(OBSTACK_H) scan.h \
xsys-protos.h $(build_xm_file) system.h cpplib.h