summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1999-07-08 12:18:18 +0000
committerJeff Law <law@gcc.gnu.org>1999-07-08 06:18:18 -0600
commit306db29921c441a245adb0557823be303a50503d (patch)
tree6dc051a468c9aeea736aaae5d94abc29370eb8f2
parent222405c715220375af07a9fd34cabbe1f0f3228e (diff)
downloadgcc-306db29921c441a245adb0557823be303a50503d.tar.gz
Makefile.in (needed-list): Only include stuff we actually need for libstdc++.
* Makefile.in (needed-list): Only include stuff we actually need for libstdc++. From-SVN: r28011
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/Makefile.in19
2 files changed, 18 insertions, 6 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 7d7b8ca1fde..e6761b61e4c 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-07 Jason Merrill <jason@yorick.cygnus.com>
+
+ * Makefile.in (needed-list): Only include stuff we actually need
+ for libstdc++.
+
Thu Jun 24 22:30:22 1999 "Philippe De Muyter" <phdm@macqel.be>
* setenv.c (sys/types.h, stdio.h): Files included.
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index b4cd7d035d0..485ba76d87a 100644
--- a/libiberty/Makefile.in
+++ b/libiberty/Makefile.in
@@ -154,13 +154,20 @@ install_to_tooldir: all
mv -f $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB).n $(tooldir)/lib$(MULTISUBDIR)/$(TARGETLIB)
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
-# needed-list is used by libstdc++.
+# needed-list is used by libstdc++. NEEDED is the list of functions
+# to include there. Do not add anything LGPL to this list; libstdc++
+# can't use anything encumbering.
+NEEDED = atexit calloc memchr memcmp memcpy memmove memset rename strchr \
+ strerror strrchr strstr strtol strtoul tmpnam vfprintf vprintf \
+ vfork waitpid
needed-list: Makefile
- f="$(LIBOBJS) $(ALLOCA) $(EXTRA_OFILES)"; \
- case $$f in \
- *alloca.o*) f="$$f xmalloc.o xexit.o" ;; \
- esac; \
- echo $$f > needed-list
+ rm -f needed-list; touch needed-list; \
+ files="$(LIBOBJS) $(EXTRA_OFILES)"; \
+ for f in $(NEEDED); do \
+ case "$$files" in \
+ *$$f*) echo $$f >> needed-list ;; \
+ esac; \
+ done
# required-list was used when building a shared bfd/opcodes/libiberty
# library. I don't know if it used by anything currently.