diff options
author | Gerald Pfeifer <gerald@FreeBSD.org> | 2010-09-28 10:48:29 +0800 |
---|---|---|
committer | Gerald Pfeifer <gerald@FreeBSD.org> | 2010-09-28 10:48:29 +0800 |
commit | ac147fb18c573d557569481be6ce91755ecac598 (patch) | |
tree | 09f744fa2fa1bb2525639e691f96d6545f61a914 /Mk | |
parent | c4b32011766588763e4763c61ce3ecb58f02538d (diff) | |
download | freebsd-ports-gnome-ac147fb18c573d557569481be6ce91755ecac598.tar.gz freebsd-ports-gnome-ac147fb18c573d557569481be6ce91755ecac598.tar.zst freebsd-ports-gnome-ac147fb18c573d557569481be6ce91755ecac598.zip |
In addition to CC and CXX now also set CPP with USE_GCC. Add the output
of CPP to the test-gcc target.
Submitted by: bf
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gcc.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mk/bsd.gcc.mk b/Mk/bsd.gcc.mk index 92093864f94b..0d2d45b977e5 100644 --- a/Mk/bsd.gcc.mk +++ b/Mk/bsd.gcc.mk @@ -182,7 +182,7 @@ _USE_GCC:=${_GCC_FOUND} .if defined(_USE_GCC) # A concrete version has been selected. Determine if the installed OS # features this version in the base, and if not then set proper ports -# dependencies, CC, CXX, and flags. +# dependencies, CC, CXX, CPP, and flags. .for v in ${GCCVERSIONS} . if ${_USE_GCC} == ${_GCCVERSION_${v}_V} . if ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} > ${_GCCVERSION_${v}_R} @@ -191,6 +191,7 @@ _GCC_BUILD_DEPENDS:= gcc${V} _GCC_PORT_DEPENDS:= gcc${V} CC:= gcc${V} CXX:= g++${V} +CPP:= cpp${V} . if ${_USE_GCC} != 3.4 CFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} LDFLAGS+= -Wl,-rpath=${LOCALBASE}/lib/${_GCC_BUILD_DEPENDS} @@ -228,7 +229,7 @@ test-gcc: .endfor @echo Using GCC version ${_USE_GCC} .endif - @echo CC=${CC} - CXX=${CXX} - CFLAGS=\"${CFLAGS}\" + @echo CC=${CC} - CXX=${CXX} - CPP=${CPP} - CFLAGS=\"${CFLAGS}\" @echo F77=${F77} - FC=${FC} - FFLAGS=\"${FFLAGS}\" @echo LDFLAGS=\"${LDFLAGS}\" @echo "BUILD_DEPENDS=${BUILD_DEPENDS}" |