Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perl: add patch for sw_vers on darwin
Fixes #25090
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
004ecac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this would cause a recursive dependency issue, but we do have "darwin.DarwinTools" now that provides sw_vers.
004ecac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, but we don't really want to use that in this case because that could influence the build result depending on the version of osx it was built on.