[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[fluid-dev] [PATCH 2/4] Remove -fvisibility=hidden flag on OS/2
From: |
KO Myung-Hun |
Subject: |
[fluid-dev] [PATCH 2/4] Remove -fvisibility=hidden flag on OS/2 |
Date: |
Sun, 5 Feb 2017 19:53:48 +0900 |
On OS/2, -fvisibility=hidden is ignored.
---
fluidsynth/CMakeLists.txt | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/fluidsynth/CMakeLists.txt b/fluidsynth/CMakeLists.txt
index 7c145fe..0ff78fb 100644
--- a/fluidsynth/CMakeLists.txt
+++ b/fluidsynth/CMakeLists.txt
@@ -142,10 +142,15 @@ if ( CMAKE_COMPILER_IS_GNUCC )
set ( CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
endif ( NOT APPLE AND NOT OS2 )
+ if ( OS2 )
+ set ( GNUCC_VISIBILITY_FLAG "" )
+ else ( OS2 )
+ set ( GNUCC_VISIBILITY_FLAG "-fvisibility=hidden" )
+ endif ( OS2 )
set ( GNUCC_WARNING_FLAGS "-Wall -W -Wpointer-arith -Wbad-function-cast
-Wno-cast-qual -Wcast-align -Wstrict-prototypes -Wno-unused-parameter
-Wdeclaration-after-statement" )
- set ( CMAKE_C_FLAGS_DEBUG "-g -fvisibility=hidden -DDEBUG
${GNUCC_WARNING_FLAGS}" )
- set ( CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer -funroll-all-loops
-finline-functions -fvisibility=hidden -DNDEBUG ${GNUCC_WARNING_FLAGS}" )
- set ( CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -fomit-frame-pointer
-funroll-all-loops -finline-functions -fvisibility=hidden -DNDEBUG
${GNUCC_WARNING_FLAGS}" )
+ set ( CMAKE_C_FLAGS_DEBUG "-g ${GNUCC_VISIBILITY_FLAG} -DDEBUG
${GNUCC_WARNING_FLAGS}" )
+ set ( CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer -funroll-all-loops
-finline-functions ${GNUCC_VISIBILITY_FLAG} -DNDEBUG ${GNUCC_WARNING_FLAGS}" )
+ set ( CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -fomit-frame-pointer
-funroll-all-loops -finline-functions ${GNUCC_VISIBILITY_FLAG} -DNDEBUG
${GNUCC_WARNING_FLAGS}" )
endif ( CMAKE_COMPILER_IS_GNUCC )
# Windows
--
2.11.0