3
0
Fork 0
forked from mirrors/nixpkgs

Export SDKROOT

This commit is contained in:
Eelco Dolstra 2014-07-28 09:14:13 +02:00
parent ac8775dd96
commit fb4e2e112f

View file

@ -15,7 +15,7 @@ import ../generic rec {
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
xargsFlags=" "
export MACOSX_DEPLOYMENT_TARGET=10.6
SDKROOT=$(/usr/bin/xcrun --show-sdk-path 2> /dev/null || true)
export SDKROOT=$(/usr/bin/xcrun --show-sdk-path 2> /dev/null || true)
export NIX_CFLAGS_COMPILE+=" --sysroot=/var/empty -idirafter $SDKROOT/usr/include -F$xcodePath/System/Library/Frameworks -Wno-multichar -Wno-deprecated-declarations"
export NIX_LDFLAGS_AFTER+=" -L$SDKROOT/usr/lib"
'' else "");