mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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"
|
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
|
||||||
xargsFlags=" "
|
xargsFlags=" "
|
||||||
export MACOSX_DEPLOYMENT_TARGET=10.6
|
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_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"
|
export NIX_LDFLAGS_AFTER+=" -L$SDKROOT/usr/lib"
|
||||||
'' else "");
|
'' else "");
|
||||||
|
Loading…
Reference in New Issue
Block a user