From 88b1da7405c0a9ad9b94026c5bc88ec4016d0557 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 2 Sep 2012 11:44:23 -0400 Subject: [PATCH] Remove -fopenmp *and* -lgomp Apparently LLVM can use these, so only remove if clang. Refs Homebrew/homebrew#14569. --- Library/ENV/4.3/cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index ec53fe882c..c37d80b9ba 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'