aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1994-09-18 22:35:55 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1994-09-18 22:35:55 +0000
commitb4aca961be225de5e841add766d2561bb2cf3022 (patch)
tree1a09b36ed3da81af997542ab383a12a4c170308f /gnu/usr.bin/cc
parentac1a8b47c77614c4cff2da718de9f824bb55510a (diff)
downloadsrc-b4aca961be225de5e841add766d2561bb2cf3022.tar.gz
src-b4aca961be225de5e841add766d2561bb2cf3022.zip
Make GCC's back end be shared among all languages. cc, c++, and cpp now
no longer link against the whole library, since they don't require much from it, but just compile the few small modules they actually need static. This should save a measurable amount of space; compare: -r-xr-xr-x 1 bin bin 155648 Sep 18 18:00 cc1* -r-xr-xr-x 1 root bin 1048576 Sep 18 17:33 cc1.noshae* Of course, the library takes up a bit of space, but when you add in the savings from the C++ compiler, you more than make up the difference: -r--r--r-- 1 bin bin 1157344 Sep 18 18:27 /usr/lib/libcc_int.so.26.0 -r-xr-xr-x 1 bin bin 491520 Sep 18 18:27 /usr/libexec/cc1plus*
Notes
Notes: svn path=/head/; revision=2871
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r--gnu/usr.bin/cc/Makefile2
-rw-r--r--gnu/usr.bin/cc/Makefile.inc4
-rw-r--r--gnu/usr.bin/cc/c++/Makefile4
-rw-r--r--gnu/usr.bin/cc/cc/Makefile7
-rw-r--r--gnu/usr.bin/cc/cc1/Makefile2
-rw-r--r--gnu/usr.bin/cc/cc1plus/Makefile2
-rw-r--r--gnu/usr.bin/cc/cc_int/Makefile9
-rw-r--r--gnu/usr.bin/cc/cccp/Makefile7
-rw-r--r--gnu/usr.bin/cc/cpp/Makefile7
9 files changed, 19 insertions, 25 deletions
diff --git a/gnu/usr.bin/cc/Makefile b/gnu/usr.bin/cc/Makefile
index 74e88b88840a..cbec53bd4594 100644
--- a/gnu/usr.bin/cc/Makefile
+++ b/gnu/usr.bin/cc/Makefile
@@ -1,5 +1,5 @@
#
-# $FreeBSD$
+# $Id$
#
PGMDIR= cc_int cpp cc1 cc cc1plus c++ libgcc
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index d3a8b22744a8..f18c27845b03 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -1,5 +1,5 @@
#
-# $FreeBSD$
+# $Id$
#
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../include
@@ -19,4 +19,4 @@ LIBDESTDIR= ${.CURDIR}/../cc_int
# XXX LDDESTDIR isn't a directory and there is no standard name for the dir
LDDESTDIR= -L${LIBDESTDIR}
-LIBCC_INT= ${LIBDESTDIR}/libcc_int.a
+LIBCC_INT= ${LIBDESTDIR}/libcc_int.so.26.0
diff --git a/gnu/usr.bin/cc/c++/Makefile b/gnu/usr.bin/cc/c++/Makefile
index 6b400b6122fc..3c9351e4b295 100644
--- a/gnu/usr.bin/cc/c++/Makefile
+++ b/gnu/usr.bin/cc/c++/Makefile
@@ -1,12 +1,10 @@
#
-# $FreeBSD$
+# $Id$
#
PROG = c++
SRCS = g++.c
BINDIR= /usr/bin
NOMAN= 1
-DPADD+= ${LIBCC_INT}
-LDADD+= -lcc_int
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc/cc/Makefile b/gnu/usr.bin/cc/cc/Makefile
index 44fabc5168e3..8d9caae95526 100644
--- a/gnu/usr.bin/cc/cc/Makefile
+++ b/gnu/usr.bin/cc/cc/Makefile
@@ -1,11 +1,10 @@
#
-# $FreeBSD$
+# $Id$
#
+.PATH: ${.CURDIR}/../cc_int
PROG = cc
-SRCS = gcc.c
+SRCS = gcc.c obstack.c version.c
BINDIR= /usr/bin
-DPADD+= ${LIBCC_INT}
-LDADD+= -lcc_int
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile
index 7cbe60bbe4fa..3ef760833356 100644
--- a/gnu/usr.bin/cc/cc1/Makefile
+++ b/gnu/usr.bin/cc/cc1/Makefile
@@ -1,5 +1,5 @@
#
-# $FreeBSD$
+# $Id$
#
PROG = cc1
diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile
index d41934b0fcb7..22bdba3606db 100644
--- a/gnu/usr.bin/cc/cc1plus/Makefile
+++ b/gnu/usr.bin/cc/cc1plus/Makefile
@@ -1,5 +1,5 @@
#
-# $FreeBSD$
+# $Id$
#
PROG = cc1plus
diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile
index 794d760910a1..aae7fb53e7a6 100644
--- a/gnu/usr.bin/cc/cc_int/Makefile
+++ b/gnu/usr.bin/cc/cc_int/Makefile
@@ -1,12 +1,11 @@
#
-# $FreeBSD$
+# $Id$
#
SRCS = aux-output.c bc-emit.c bc-optab.c c-common.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 final.c flow.c fold-const.c function.c getpwd.c global.c insn-attrtab.c insn-emit.c insn-extract.c insn-opinit.c insn-output.c insn-peep.c insn-recog.c integrate.c jump.c local-alloc.c loop.c obstack.c optabs.c print-rtl.c print-tree.c real.c recog.c reg-stack.c regclass.c reload.c reload1.c reorg.c rtl.c rtlanal.c sched.c sdbout.c stmt.c stor-layout.c stupid.c toplev.c tree.c unroll.c varasm.c version.c xcoffout.c
LIB = cc_int
-NOPROFILE= 1
-
-install:
- @true
+INTERNALLIB=
+SHLIB_MAJOR=26
+SHLIB_MINOR=0
.include <bsd.lib.mk>
diff --git a/gnu/usr.bin/cc/cccp/Makefile b/gnu/usr.bin/cc/cccp/Makefile
index b7e09c216bb0..0bbc198d9d31 100644
--- a/gnu/usr.bin/cc/cccp/Makefile
+++ b/gnu/usr.bin/cc/cccp/Makefile
@@ -1,11 +1,10 @@
#
-# $FreeBSD$
+# $Id$
#
+.PATH: ${.CURDIR}/../cc_int
PROG = cpp
-SRCS = cccp.c cexp.c
+SRCS = cccp.c cexp.c obstack.c version.c
BINDIR= /usr/libexec
-DPADD+= ${LIBCC_INT}
-LDADD+= -lcc_int
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/cc/cpp/Makefile b/gnu/usr.bin/cc/cpp/Makefile
index b7e09c216bb0..0bbc198d9d31 100644
--- a/gnu/usr.bin/cc/cpp/Makefile
+++ b/gnu/usr.bin/cc/cpp/Makefile
@@ -1,11 +1,10 @@
#
-# $FreeBSD$
+# $Id$
#
+.PATH: ${.CURDIR}/../cc_int
PROG = cpp
-SRCS = cccp.c cexp.c
+SRCS = cccp.c cexp.c obstack.c version.c
BINDIR= /usr/libexec
-DPADD+= ${LIBCC_INT}
-LDADD+= -lcc_int
.include <bsd.prog.mk>