From 9a0a20714fe3e0d48ad40c285cd93a46d32157ff Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Mon, 24 Feb 2014 12:29:14 +0000 Subject: 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 --- openmp/runtime/src/makefile.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openmp/runtime/src') diff --git a/openmp/runtime/src/makefile.mk b/openmp/runtime/src/makefile.mk index 8d3892a1180..fbed276b098 100644 --- a/openmp/runtime/src/makefile.mk +++ b/openmp/runtime/src/makefile.mk @@ -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 -- cgit v1.2.3