parent
7c75ef8714
commit
004ecac47b
@ -36,7 +36,7 @@ let
|
|||||||
./no-sys-dirs.patch
|
./no-sys-dirs.patch
|
||||||
]
|
]
|
||||||
++ optional stdenv.isSunOS ./ld-shared.patch
|
++ optional stdenv.isSunOS ./ld-shared.patch
|
||||||
++ optional stdenv.isDarwin [ ./cpp-precomp.patch ];
|
++ optional stdenv.isDarwin [ ./cpp-precomp.patch ./sw_vers.patch ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
pwd="$(type -P pwd)"
|
pwd="$(type -P pwd)"
|
||||||
|
13
pkgs/development/interpreters/perl/sw_vers.patch
Normal file
13
pkgs/development/interpreters/perl/sw_vers.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/hints/darwin.sh b/hints/darwin.sh
|
||||||
|
index afadf53..80b7533 100644
|
||||||
|
--- a/hints/darwin.sh
|
||||||
|
+++ b/hints/darwin.sh
|
||||||
|
@@ -329,7 +329,7 @@ EOM
|
||||||
|
# sw_vers output what we want
|
||||||
|
# "ProductVersion: 10.10.5" "10.10"
|
||||||
|
# "ProductVersion: 10.11" "10.11"
|
||||||
|
- prodvers=`sw_vers|awk '/^ProductVersion:/{print $2}'|awk -F. '{print $1"."$2}'`
|
||||||
|
+ prodvers="10.10"
|
||||||
|
case "$prodvers" in
|
||||||
|
10.*)
|
||||||
|
add_macosx_version_min ccflags $prodvers
|
Loading…
x
Reference in New Issue
Block a user