dfbaea8347
installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp. Note this does *not* disable building and installing gcc, which will still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp. If you want to disable gcc completely, you must use WITHOUT_GCC. MFC after: 2 weeks
22 lines
338 B
Makefile
22 lines
338 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include "../Makefile.inc"
|
|
.include "../Makefile.fe"
|
|
|
|
.PATH: ${GCCDIR}/cp
|
|
|
|
PROG= g++
|
|
SRCS+= g++spec.c
|
|
.if ${MK_CLANG_IS_CC} == "no"
|
|
LINKS= ${BINDIR}/g++ ${BINDIR}/c++
|
|
LINKS+= ${BINDIR}/g++ ${BINDIR}/CC
|
|
.endif
|
|
NO_MAN=
|
|
|
|
DPADD= ${LIBCPP} ${LIBIBERTY}
|
|
LDADD= ${LIBCPP} ${LIBIBERTY}
|
|
|
|
.include <bsd.prog.mk>
|