LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qpid-cpp-boost-pic.patch of Package qpid-cpp (Project home:jblunck:md)

Index: qpid-cpp-0.34/src/CMakeLists.txt
===================================================================
--- qpid-cpp-0.34.orig/src/CMakeLists.txt
+++ qpid-cpp-0.34/src/CMakeLists.txt
@@ -166,7 +166,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL Windows)
   set (Boost_components program_options date_time thread)
   set (Boost_minversion 1.44)
 else (CMAKE_SYSTEM_NAME STREQUAL Windows)
-  set (Boost_components program_options)
+  set (Boost_components program_options-pic)
   set (Boost_minversion 1.33)
 endif (CMAKE_SYSTEM_NAME STREQUAL Windows)
 
@@ -188,7 +188,7 @@ find_package(Boost ${Boost_minversion} Q
 # Boost.system was introduced at Boost 1.35; it's needed secondarily by other
 # Boost libs Qpid needs, so be sure it's there.
 if (Boost_VERSION GREATER 103499)
-  list(APPEND Boost_components system)
+  list(APPEND Boost_components system-pic)
 endif (Boost_VERSION GREATER 103499)
 
 # Boost.chrono was introduced at Boost 1.47; it's needed secondarily by other
@@ -581,7 +581,8 @@ if (BUILD_HA)
     add_library (ha MODULE ${ha_SOURCES})
     target_link_libraries (ha
                            qpidtypes qpidcommon qpidbroker qpidmessaging
-                           ${Boost_PROGRAM_OPTIONS_LIBRARY})
+                           ${Boost_PROGRAM_OPTIONS_LIBRARY}
+                           ${Boost_PROGRAM_OPTIONS-PIC_LIBRARY})
     set_target_properties (ha PROPERTIES
                            PREFIX ""
                            COMPILE_DEFINITIONS _IN_QPID_BROKER)
@@ -856,6 +857,7 @@ add_library (qpidcommon SHARED ${qpidcom
 target_link_libraries (qpidcommon qpidtypes
                        ${qpidcommon_platform_LIBS}
                        ${Boost_PROGRAM_OPTIONS_LIBRARY}
+                       ${Boost_PROGRAM_OPTIONS-PIC_LIBRARY}
                        "${sasl_LIB}"
                        ${ssl_LIBS})