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 <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-22 17:40:36 +02:00
parent f747352c84
commit ae043ec0de
1 changed files with 4 additions and 0 deletions

View File

@ -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})