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:
parent
f747352c84
commit
ae043ec0de
|
@ -102,6 +102,10 @@ add_executable(${PROJECT_AWECLIENT_NAME}
|
||||||
${AWE_CLIENT_SRCS}
|
${AWE_CLIENT_SRCS}
|
||||||
${BUILD_DIR}/common/tokenize.c)
|
${BUILD_DIR}/common/tokenize.c)
|
||||||
|
|
||||||
|
set_target_properties(${PROJECT_AWE_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
LINK_FLAGS -export-dynamic)
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_AWE_NAME}
|
target_link_libraries(${PROJECT_AWE_NAME}
|
||||||
${AWESOME_REQUIRED_LIBRARIES}
|
${AWESOME_REQUIRED_LIBRARIES}
|
||||||
${AWESOME_OPTIONAL_LIBRARIES})
|
${AWESOME_OPTIONAL_LIBRARIES})
|
||||||
|
|
Loading…
Reference in New Issue