forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc9565d
commit 1753a20
Showing
9 changed files
with
28 additions
and
5 deletions.
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
20 changes: 20 additions & 0 deletions
20
pkgs/development/compilers/ocaml/fix-clang-build-on-osx.diff
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,20 @@ | ||
diff --git a/configure b/configure | ||
index d45e88f..25d872b 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -322,7 +322,14 @@ case "$bytecc,$target" in | ||
bytecccompopts="-fno-defer-pop $gcc_warnings -DSHRINKED_GNUC" | ||
mathlib="";; | ||
*,*-*-darwin*) | ||
- bytecccompopts="-fno-defer-pop $gcc_warnings" | ||
+ # On recent version of OSX, gcc is a symlink to clang | ||
+ if $bytecc --version | grep -q clang; then | ||
+ # -fno-defer-pop is not supported by clang, and make recent | ||
+ # versions of clang to fail | ||
+ bytecccompopts="$gcc_warnings" | ||
+ else | ||
+ bytecccompopts="-fno-defer-pop $gcc_warnings" | ||
+ fi | ||
mathlib="" | ||
mkexe="$mkexe -Wl,-no_compact_unwind" | ||
# Tell gcc that we can use 32-bit code addresses for threaded code |
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
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
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