summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorpaul <paul@FreeBSD.org>1994-08-23 17:18:58 +0000
committerpaul <paul@FreeBSD.org>1994-08-23 17:18:58 +0000
commit8312f29778c8354f24b951eb974b2699bd69f2ba (patch)
tree21c7b1f2c172ea55c361e33173e2e70f4b0a7787 /gnu/usr.bin
parent96a3ea238134f915805078e73fcf014a85d13a49 (diff)
downloadFreeBSD-src-8312f29778c8354f24b951eb974b2699bd69f2ba.zip
FreeBSD-src-8312f29778c8354f24b951eb974b2699bd69f2ba.tar.gz
Fixed up everything so that the version of gcc that we install from the
FreeBSD system sources installs itself as the standard cc and c++. I've fixed c++ to call cc instead of gcc and removed all the symlinks that get created to g** version of the binaries. This means that you can install a second version of gcc that does use the g prefix alongside the "system" version of gcc. The only conflict is libgcc but since we install it as libcc.so.26 and nothing else is likely to that should be ok. Reviewed by: Submitted by:
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/cc/Makefile.inc1
-rw-r--r--gnu/usr.bin/cc/cc/Makefile6
2 files changed, 1 insertions, 6 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index 95525cb..39ae7e7 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -9,3 +9,4 @@ CFLAGS+= -DDEFAULT_TARGET_VERSION=\"2.6.0\"
CFLAGS+= -DDEFAULT_TARGET_MACHINE=\"i386--freebsd\"
CFLAGS+= -DMD_EXEC_PREFIX=\"/usr/libexec/\"
CFLAGS+= -DSTANDARD_STARTFILE_PREFIX=\"/usr/lib\"
+CFLAGS+= -DGCC_NAME=\"cc\"
diff --git a/gnu/usr.bin/cc/cc/Makefile b/gnu/usr.bin/cc/cc/Makefile
index f95615b..dc503ab 100644
--- a/gnu/usr.bin/cc/cc/Makefile
+++ b/gnu/usr.bin/cc/cc/Makefile
@@ -5,14 +5,8 @@
PROG = cc
SRCS = gcc.c
BINDIR= /usr/bin
-MLINKS+=cc.1 gcc.1
-MLINKS+=cc.1 c++.1
-MLINKS+=cc.1 g++.1
LDDESTDIR+= -L${.CURDIR}/../cc_int/obj
LDDESTDIR+= -L${.CURDIR}/../cc_int
LDADD+= -lcc_int
-afterinstall:
- cd $(DESTDIR)$(BINDIR) ; rm -f gcc ; ln -s cc gcc
-
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud