never use libm with Intel compilers

Intel compilers include a highly optimized math library (libimf) that
should be used instead of GNU libm.

yes, this change is for ALL targets, including those that are not
supported by the Intel compiler.  there is no harm in doing this, and it
is future-proof in the event that the Intel compilers support other
architectures.
This commit is contained in:
Jeff Hammond
2016-10-25 21:15:26 -07:00
committed by prangana
parent d6ef56c6db
commit 0d1b90286e
17 changed files with 39 additions and 1 deletions

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -88,7 +88,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -88,7 +88,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -95,7 +95,11 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
LDFLAGS := -lm -lmemkind
ifeq ($(CC_VENDOR),icc)
LDFLAGS := -lmemkind
else
LDFLAGS := -lmemkind -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -77,7 +77,11 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifeq ($(CC_VENDOR),icc)
LDFLAGS := -mmic
else
LDFLAGS := -mmic -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -63,7 +63,9 @@ ARFLAGS := rcs
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS :=
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif
# --- Determine the finalizer and related flags ---
FINALIZER := pnacl-finalize

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -86,7 +86,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -88,7 +88,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif

View File

@@ -77,7 +77,9 @@ ARFLAGS := cru
# --- Determine the linker and related flags ---
LINKER := $(CC)
SOFLAGS := -shared
ifneq ($(CC_VENDOR),icc)
LDFLAGS := -lm
endif