diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-10-08 20:13:22 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-10-08 20:13:22 +0000 |
| commit | 81b2d98bdd80db979df3757591c5f5c2a8c4fbf7 (patch) | |
| tree | 5d4b7204e0840badac2ad7f25ace97a472f3607a /cpp | |
| parent | 763f15f618ba6db9839651bb862d8a56387d0776 (diff) | |
| download | qpid-python-81b2d98bdd80db979df3757591c5f5c2a8c4fbf7.tar.gz | |
NO-JIRA: Stop compile warnings on RHEL5
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1530412 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index 62c1ab8c95..f5d9a80eb7 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -298,14 +298,14 @@ if (CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_SYSTEM_NAME STREQUAL SunOS) set (CATCH_UNDEFINED "") endif (CMAKE_SYSTEM_NAME STREQUAL SunOS) - set (COMPILER_FLAGS "-fvisibility-inlines-hidden -Wl,--as-needed") + set (COMPILER_FLAGS "-fvisibility-inlines-hidden") # gcc 4.1.2 on RHEL 5 needs -Wno-attributes to avoid an error that's fixed # in later gcc versions. execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION) if (GCC_VERSION VERSION_EQUAL 4.1.2) - set (COMPILER_FLAGS "-Wl,--as-needed") - message (STATUS "Cannot use -fvisibility=hidden on gcc 4.1.2") + message (STATUS "Cannot restrict library symbol export on gcc 4.1.2") + set (HIDE_SYMBOL_FLAGS "-fno-visibility-inlines-hidden") else (GCC_VERSION VERSION_EQUAL 4.1.2) set (HIDE_SYMBOL_FLAGS "-fno-visibility-inlines-hidden -fvisibility=hidden") endif (GCC_VERSION VERSION_EQUAL 4.1.2) |
