summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-18 22:35:55 +0000
committerwollman <wollman@FreeBSD.org>1994-09-18 22:35:55 +0000
commitce10b298dff1eea96989b1d8fc9ac8b22535798f (patch)
tree1a09b36ed3da81af997542ab383a12a4c170308f /gnu
parent208c1a5a6da78b06a88ffe59cafe43e426e28d03 (diff)
downloadFreeBSD-src-ce10b298dff1eea96989b1d8fc9ac8b22535798f.zip
FreeBSD-src-ce10b298dff1eea96989b1d8fc9ac8b22535798f.tar.gz
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*
Diffstat (limited to 'gnu')
-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 74e88b8..cbec53b 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 d3a8b22..f18c278 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 6b400b6..3c9351e 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 44fabc5..8d9caae 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 7cbe60b..3ef7608 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 d41934b..22bdba3 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 794d760..aae7fb5 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 b7e09c2..0bbc198 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 b7e09c2..0bbc198 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>
OpenPOWER on IntegriCloud