mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
This commit is contained in:
parent
329b62ac1c
commit
6f1537dd90
2 changed files with 1 additions and 6 deletions
|
|
@ -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\"
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue