summary refs log tree commit diff
path: root/pkgs/stdenv/darwin/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-04 13:27:42 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-04 13:28:31 +0100
commit899d81b37ba6dc26431b82b40300505f19504e03 (patch)
tree6a1178a4ae9c27105053eab457e6528018522a6c /pkgs/stdenv/darwin/default.nix
parent97e9d2b3512eca5ec89eafe391efac98b101831b (diff)
downloadnixlib-899d81b37ba6dc26431b82b40300505f19504e03.tar
nixlib-899d81b37ba6dc26431b82b40300505f19504e03.tar.gz
nixlib-899d81b37ba6dc26431b82b40300505f19504e03.tar.bz2
nixlib-899d81b37ba6dc26431b82b40300505f19504e03.tar.lz
nixlib-899d81b37ba6dc26431b82b40300505f19504e03.tar.xz
nixlib-899d81b37ba6dc26431b82b40300505f19504e03.tar.zst
nixlib-899d81b37ba6dc26431b82b40300505f19504e03.zip
Set MACOSX_DEPLOYMENT_TARGET to 10.9
This makes stuff build with Xcode 6.1 on Mac OS X 10.9 (where we got
errors like "ld: file not found:
/usr/lib/system/libsystem_coreservices.dylib for architecture x86_64" due to the use of the 10.10 SDK).
Diffstat (limited to 'pkgs/stdenv/darwin/default.nix')
-rw-r--r--pkgs/stdenv/darwin/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index cbc9a38b77de..9131f0742d00 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -14,8 +14,8 @@ import ../generic rec {
       dontFixLibtool=1
       stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
       xargsFlags=" "
-      export MACOSX_DEPLOYMENT_TARGET=10.6
-      export SDKROOT=$(/usr/bin/xcrun --show-sdk-path 2> /dev/null || true)
+      export MACOSX_DEPLOYMENT_TARGET=10.9
+      export SDKROOT=$(/usr/bin/xcrun --sdk macosx10.9 --show-sdk-path 2> /dev/null || true)
       export NIX_CFLAGS_COMPILE+=" --sysroot=/var/empty -idirafter $SDKROOT/usr/include -F$SDKROOT/System/Library/Frameworks -Wno-multichar -Wno-deprecated-declarations"
       export NIX_LDFLAGS_AFTER+=" -L$SDKROOT/usr/lib"
     '';