summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2013-04-05 15:41:58 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2013-04-05 15:41:58 +0000
commitf37698a3988d22af43d2d286be8b2b68e418bec7 (patch)
treeeda1b423b1cdcfc9703862c74d425eb0f929e96d
parentaa7b42ecb66598dd76b0d5c61977d70741b2a0cd (diff)
downloadqpid-python-f37698a3988d22af43d2d286be8b2b68e418bec7.tar.gz
QPID-4704: Build legacystore.so as a module, not a shared library.
Fixes the legacystore.cmake file to build the file appropriately, and als includes a directive to install the module along with others. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1465015 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/legacystore.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/qpid/cpp/src/legacystore.cmake b/qpid/cpp/src/legacystore.cmake
index 10a166f50c..d3c1ea7f7c 100644
--- a/qpid/cpp/src/legacystore.cmake
+++ b/qpid/cpp/src/legacystore.cmake
@@ -132,17 +132,16 @@ if (BUILD_LEGACYSTORE)
"#include <${DB_INCLUDE_DIR}/db_cxx.h>")
endif()
- add_library (legacystore SHARED
+ add_library (legacystore MODULE
${legacy_jrnl_SOURCES}
${legacy_store_SOURCES}
${legacy_qmf_SOURCES}
)
-
+
set_target_properties (legacystore PROPERTIES
PREFIX ""
COMPILE_DEFINITIONS _IN_QPID_BROKER
OUTPUT_NAME legacystore
- SOVERSION ${legacystore_version}
INCLUDE_DIRECTORIES "${legacy_include_DIRECTORIES}"
)
@@ -152,6 +151,11 @@ if (BUILD_LEGACYSTORE)
qpidcommon qpidtypes qpidbroker
${DB_LIBRARY}
)
+
+install(TARGETS legacystore
+ DESTINATION ${QPIDD_MODULE_DIR}
+ COMPONENT ${QPID_COMPONENT_BROKER})
+
else (BUILD_LEGACYSTORE)
message(STATUS "Legacystore is excluded from build.")
endif (BUILD_LEGACYSTORE)