forked from mirrors/nixpkgs
Export SDKROOT
This commit is contained in:
parent
ac8775dd96
commit
fb4e2e112f
|
@ -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 "");
|
||||
|
|
Loading…
Reference in a new issue