diff options
| author | Clifford Allan Jansen <cliffjansen@apache.org> | 2012-02-09 17:40:14 +0000 |
|---|---|---|
| committer | Clifford Allan Jansen <cliffjansen@apache.org> | 2012-02-09 17:40:14 +0000 |
| commit | 09516db3de415117dd2fe4c3030f463d94953332 (patch) | |
| tree | 16b859501ff4568c56d949167224ab97acadbc1b /cpp/src/qpid/store | |
| parent | e1fea34cda777d436549beba82dd0fe04350edd9 (diff) | |
| download | qpid-python-09516db3de415117dd2fe4c3030f463d94953332.tar.gz | |
QPID-3621 cmake build changes for solaris and solaris specific code changes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1242411 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/store')
| -rw-r--r-- | cpp/src/qpid/store/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/qpid/store/CMakeLists.txt b/cpp/src/qpid/store/CMakeLists.txt index 464d2de052..9abdf0ae3d 100644 --- a/cpp/src/qpid/store/CMakeLists.txt +++ b/cpp/src/qpid/store/CMakeLists.txt @@ -34,9 +34,15 @@ set (store_SOURCES add_library (store MODULE ${store_SOURCES}) target_link_libraries (store qpidbroker ${Boost_PROGRAM_OPTIONS_LIBRARY}) if (CMAKE_COMPILER_IS_GNUCXX) + set (GCC_CATCH_UNDEFINED "-Wl,--no-undefined") + # gcc on SunOS uses native linker whose "-z defs" is too fussy + if (CMAKE_SYSTEM_NAME STREQUAL SunOS) + set (GCC_CATCH_UNDEFINED "") + endif (CMAKE_SYSTEM_NAME STREQUAL SunOS) + set_target_properties (store PROPERTIES PREFIX "" - LINK_FLAGS -Wl,--no-undefined) + LINK_FLAGS "${GCC_CATCH_UNDEFINED}") endif (CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_SYSTEM_NAME STREQUAL Windows) |
