Fix linking and get the build working on OS X

No version of clang installed by XCode, ToT or otherwise recognizes the flag
'-no-intel-extensions' and more recent versions error out on it.

Prospectively conditionalize the flag behind "icc" to fix the mainline build
with clang.

llvm-svn: 202030
This commit is contained in:
Alp Toker 2014-02-24 12:29:14 +00:00
parent c5df02fa0d
commit 9a0a20714f
1 changed files with 3 additions and 1 deletions

View File

@ -411,7 +411,9 @@ ifeq "$(os)" "lrb"
endif
ifeq "$(os)" "mac"
ld-flags += -no-intel-extensions
ifeq "$(c)" "icc"
ld-flags += -no-intel-extensions
endif
ld-flags += -single_module
ld-flags += -current_version $(VERSION).0 -compatibility_version $(VERSION).0
endif