mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
perl: Update detected platform version
Instead of hardcoding the version as 10.10, we should just detect it as being MACOSX_DEPLOYMENT_TARGET.
This commit is contained in:
parent
e3f25191c4
commit
d046ab888c
@ -7,7 +7,7 @@ index afadf53..80b7533 100644
|
||||
# "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"
|
||||
+ prodvers="${MACOSX_DEPLOYMENT_TARGET:-10.12}"
|
||||
case "$prodvers" in
|
||||
10.*)
|
||||
add_macosx_version_min ccflags $prodvers
|
||||
|
Loading…
Reference in New Issue
Block a user