mirror of
https://github.com/amd/blis.git
synced 2026-05-12 18:15:37 +00:00
Use -fvisibility=[...] with clang on Linux/BSD/OSX.
Details: - Modified common.mk to use the -fvisibility=[hidden|default] option when compiling with clang on non-Windows platforms (Linux, BSD, OS X, etc.). Thanks to Isuru Fernando for pointing out this option works with clang on these OSes.
This commit is contained in:
committed by
Devrajegowda, Kiran
parent
40b392de3f
commit
9ea223df2d
13
common.mk
13
common.mk
@@ -643,6 +643,8 @@ endif
|
||||
endif
|
||||
|
||||
# Determine default export behavior / visibility of symbols for icc.
|
||||
# NOTE: The Windows branches have been omitted since we currently make no
|
||||
# effort to support Windows builds via icc (only gcc/clang via AppVeyor).
|
||||
ifeq ($(CC_VENDOR),icc)
|
||||
ifeq ($(ENABLE_EXPORT_ALL),yes)
|
||||
# Export all symbols by default.
|
||||
@@ -669,13 +671,12 @@ CMISCFLAGS :=
|
||||
endif
|
||||
else # ifeq ($(IS_WIN),no)
|
||||
ifeq ($(ENABLE_EXPORT_ALL),yes)
|
||||
# NOTE: Not sure if clang on Linux/BSD/OSX supports exporting all symbols by
|
||||
# default.
|
||||
CMISCFLAGS :=
|
||||
# Export all symbols by default.
|
||||
CMISCFLAGS := -fvisibility=default
|
||||
else
|
||||
# NOTE: Not sure if clang on Linux/BSD/OSX supports hiding all symbols by
|
||||
# default.
|
||||
CMISCFLAGS :=
|
||||
# Hide all symbols by default and export only those that have been annotated
|
||||
# as needing to be exported.
|
||||
CMISCFLAGS := -fvisibility=hidden
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user