From 6a75d0b0c086dac7c0c46a9d80fcccd2f99958f0 Mon Sep 17 00:00:00 2001 From: Veniamin Gvozdikov <vgvozdikov@tarantool.org> Date: Wed, 16 Oct 2013 19:13:42 +0400 Subject: [PATCH] Fixed build plugins on FreeBSD --- src/CMakeLists.txt | 2 +- src/plugin/mysql/CMakeLists.txt | 2 +- src/plugin/pg/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ccaf6e16bf..ca9e051baf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -211,7 +211,7 @@ function(tarantool_module mod) "-DTARANTOOL_CONFIG='<cfg/tarantool_${mod}_cfg.h>'") add_dependencies(lt${mod} generate_headers generate_admin_cc generate_memcached_grammar_cc build_bundled_libs) - target_link_libraries(tarantool_${mod} lt${mod} ${common_libraries}) + target_link_libraries(tarantool_${mod} lt${mod} ${common_libraries} -rdynamic) if (ENABLE_STATIC) set_target_properties(tarantool_${mod} PROPERTIES diff --git a/src/plugin/mysql/CMakeLists.txt b/src/plugin/mysql/CMakeLists.txt index 0f7c445d33..e7ea8df575 100644 --- a/src/plugin/mysql/CMakeLists.txt +++ b/src/plugin/mysql/CMakeLists.txt @@ -6,7 +6,7 @@ if (MYSQL_FOUND) include_directories(${MYSQL_INCLUDE_DIRS}) add_library(mysql SHARED mysql.cc) - target_link_libraries(mysql ${MYSQL_LIBRARIES}) + target_link_libraries(mysql ${MYSQL_LIBRARIES} -rdynamic) install(TARGETS mysql LIBRARY DESTINATION ${PLUGIN_DIR}) else() message(STATUS "MySQL client not found, box.net.sql(mysql) disabled") diff --git a/src/plugin/pg/CMakeLists.txt b/src/plugin/pg/CMakeLists.txt index 98c3483506..dcaf15475d 100644 --- a/src/plugin/pg/CMakeLists.txt +++ b/src/plugin/pg/CMakeLists.txt @@ -7,7 +7,7 @@ if (PostgreSQL_FOUND) include_directories(${PostgreSQL_INCLUDE_DIRS}) add_library(pg SHARED pg.cc) - target_link_libraries(pg ${PostgreSQL_LIBRARIES}) + target_link_libraries(pg ${PostgreSQL_LIBRARIES} -rdynamic) install(TARGETS pg LIBRARY DESTINATION ${PLUGIN_DIR}) else() -- GitLab