From ae043ec0de4567619a501e2abc68691d60d8e75f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 22 Aug 2008 17:40:36 +0200 Subject: [PATCH] build: add -export-dynamic flag Without -export-dynamic, the dynamic linker (dlopen in the lua interpreter) will error out when loading lfs.so, because lfs.so uses some symbols defined in the lua library (static only on freebsd). Signed-off-by: Julien Danjou --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7368ce18..1b8ac157 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,6 +102,10 @@ add_executable(${PROJECT_AWECLIENT_NAME} ${AWE_CLIENT_SRCS} ${BUILD_DIR}/common/tokenize.c) +set_target_properties(${PROJECT_AWE_NAME} + PROPERTIES + LINK_FLAGS -export-dynamic) + target_link_libraries(${PROJECT_AWE_NAME} ${AWESOME_REQUIRED_LIBRARIES} ${AWESOME_OPTIONAL_LIBRARIES})