summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-05-24 20:02:21 +0000
committerobrien <obrien@FreeBSD.org>2000-05-24 20:02:21 +0000
commit2a9348d6af788cde877b36a4d5d6bbe8d6e3d3ed (patch)
tree760df413a012cbe894958337ab8706fe4d0d7f1f /gnu/usr.bin
parentac5003302a05f7a1c3b285159b6250f1575de1fa (diff)
downloadFreeBSD-src-2a9348d6af788cde877b36a4d5d6bbe8d6e3d3ed.zip
FreeBSD-src-2a9348d6af788cde877b36a4d5d6bbe8d6e3d3ed.tar.gz
Move c-decl.c out of the common libcc_int.a into the binary Makefiles
where it is used. c-decl has symbols that conflict with several of the cc1plus sources. GNU `ld' was changed in Dec 1999 to be more be compatable with the way that other linkers work (specifically in the Solaris linker). The 2.9.1 `ld', did the Wrong Thing in that if a library contained a common symbol that matched a definition of that symbol in another (already linked in object) it would also be linked in, even if there was no other reason to do so. This is wrong. The library should only be linked in if it contains non-common, non-weak symbols which are needed by previously linked in objects.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/cc/cc1/Makefile3
-rw-r--r--gnu/usr.bin/cc/cc1obj/Makefile2
-rw-r--r--gnu/usr.bin/cc/cc_int/Makefile2
3 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile
index 3b2a63d..573fc52 100644
--- a/gnu/usr.bin/cc/cc1/Makefile
+++ b/gnu/usr.bin/cc/cc1/Makefile
@@ -6,7 +6,8 @@
PROG= cc1
SRCS= c-parse.c c-parse.h c-lang.c
-SRCS+= c-lex.c
+# Ugh, compiled twice...
+SRCS+= c-decl.c c-lex.c
BINDIR= /usr/libexec
NOMAN= 1
NOSHARED=yes
diff --git a/gnu/usr.bin/cc/cc1obj/Makefile b/gnu/usr.bin/cc/cc1obj/Makefile
index 7bd4984..c0fd806 100644
--- a/gnu/usr.bin/cc/cc1obj/Makefile
+++ b/gnu/usr.bin/cc/cc1obj/Makefile
@@ -7,7 +7,7 @@
PROG= cc1obj
SRCS= objc-parse.c objc-parse.h objc-parse.h objc-act.c
# Ugh, compiled twice...
-SRCS+= c-lex.c
+SRCS+= c-decl.c c-lex.c
BINDIR= /usr/libexec
NOMAN= 1
NOSHARED=yes
diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile
index afb3786..aa15d23 100644
--- a/gnu/usr.bin/cc/cc_int/Makefile
+++ b/gnu/usr.bin/cc/cc_int/Makefile
@@ -8,7 +8,7 @@ LIB= cc_int
NOPROFILE= YES
NOPIC= YES
-SRCS= c-aux-info.c c-common.c c-convert.c c-decl.c c-iterate.c \
+SRCS= c-aux-info.c c-common.c c-convert.c c-iterate.c \
c-pragma.c c-typeck.c \
caller-save.c calls.c combine.c convert.c cse.c \
dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
OpenPOWER on IntegriCloud