Only set the C++ preprocessor if C++ is enabled
svn path=/nixpkgs/trunk/; revision=26669
This commit is contained in:
parent
ea7a559290
commit
72a9ea5c5c
@ -8,7 +8,9 @@ mkdir $NIX_FIXINC_DUMMY
|
|||||||
# libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad
|
# libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad
|
||||||
# Thing.
|
# Thing.
|
||||||
export CPP="gcc -E"
|
export CPP="gcc -E"
|
||||||
export CXXCPP="gcc -E"
|
if test "$langCC" = "1"; then
|
||||||
|
export CXXCPP="gcc -E" #We only want this if C++ is enabled
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$staticCompiler" = "1"; then
|
if test "$staticCompiler" = "1"; then
|
||||||
EXTRA_LDFLAGS="-static"
|
EXTRA_LDFLAGS="-static"
|
||||||
|
@ -200,7 +200,7 @@ stdenv.mkDerivation ({
|
|||||||
else null;
|
else null;
|
||||||
|
|
||||||
inherit noSysDirs profiledCompiler staticCompiler langJava crossStageStatic
|
inherit noSysDirs profiledCompiler staticCompiler langJava crossStageStatic
|
||||||
libcCross crossMingw;
|
libcCross crossMingw langCC;
|
||||||
|
|
||||||
buildNativeInputs = [ texinfo which ]
|
buildNativeInputs = [ texinfo which ]
|
||||||
++ optional (perl != null) perl;
|
++ optional (perl != null) perl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user