Skip to content

Commit fc243a3

Browse files
committed
cleanup, set '-fvisibility=hidden' flag
1 parent 3c5cea0 commit fc243a3

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

Makefile.system

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,15 @@ LIBSUFFIX = a
486486

487487
ifeq ($(C_COMPILER), CLANG)
488488
CCOMMON_OPT += -DMS_ABI
489+
CCOMMON_OPT += -fvisibility=hidden
489490
endif
490491

491492
#Version tests for supporting specific features (MS_ABI, POWER9 intrinsics)
492493
ifeq ($(GCCVERSIONGT4), 1)
493494
# GCC Major version > 4
494495
# It is compatible with MSVC ABI.
495496
CCOMMON_OPT += -DMS_ABI
497+
CCOMMON_OPT += -fvisibility=hidden
496498
endif
497499

498500
ifeq ($(GCCVERSIONGTEQ4), 1)

cmake/system.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ if (BUILD_HFLOAT16)
742742
endif()
743743
if(NOT MSVC)
744744
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} ${CCOMMON_OPT}")
745+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
745746
endif()
746747
# TODO: not sure what PFLAGS is -hpa
747748
set(PFLAGS "${PFLAGS} ${CCOMMON_OPT} -I${TOPDIR} -DPROFILE ${COMMON_PROF}")

interface/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
TOPDIR = ..
3030
include $(TOPDIR)/Makefile.system
3131

32-
3332
SUPPORT_GEMM3M = 0
3433

3534
ifeq ($(ARCH), x86)

interface/axpy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#define MULTI_THREAD_MINIMAL 10000
4848
#endif
4949

50-
5150
OPENBLAS_EXPORT
5251
#ifndef CBLAS
5352

0 commit comments

Comments
 (0)