aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-09-02 11:44:23 -0400
committerMax Howell2012-09-02 23:10:06 -0400
commit88b1da7405c0a9ad9b94026c5bc88ec4016d0557 (patch)
tree17b1bd5d4b6fafd3ccec6ee75f7d26d2cc383001 /Library
parentb97c0919f8e6758adf0982accfc94d14e42b8469 (diff)
downloadbrew-88b1da7405c0a9ad9b94026c5bc88ec4016d0557.tar.bz2
Remove -fopenmp *and* -lgomp
Apparently LLVM can use these, so only remove if clang. Refs Homebrew/homebrew#14569.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index ec53fe882..c37d80b9b 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -100,9 +100,9 @@ class Cmd
%r{^-[IL]/opt/local}, %r{^-[IL]/sw}, # no macports/fink
%r{^-[IL]/usr/X11}, %r{^-[IL]/opt/X11}, # we add X11 ourselves
'-pedantic', '-pedantic-errors'
- when /^-fopenmp/
- # remove this arg: it fails the build with:
- # ld: library not found for -lgomp
+ when '-fopenmp', '-lgomp'
+ # clang doesn't support OpenMP
+ args << arg if not tool =~ /^clang/
when /^-W.*/
args << arg if arg =~ /^-Wl,/
when '-macosx_version_min', '-dylib_install_name'