Have only FreeBSD require dynamic linking (FS#743)
Signed-off-by: Steven Oliver <oliver.steven@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
ec66ac876b
commit
d60488f73e
|
@ -92,9 +92,12 @@ endif()
|
||||||
add_executable(${PROJECT_AWE_NAME}
|
add_executable(${PROJECT_AWE_NAME}
|
||||||
${AWE_SRCS})
|
${AWE_SRCS})
|
||||||
|
|
||||||
set_target_properties(${PROJECT_AWE_NAME}
|
# FreeBSD requires dynamic linking
|
||||||
PROPERTIES
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
LINK_FLAGS -export-dynamic)
|
set_target_properties(${PROJECT_AWE_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
LINK_FLAGS -export-dynamic)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_AWE_NAME}
|
target_link_libraries(${PROJECT_AWE_NAME}
|
||||||
${AWESOME_COMMON_REQUIRED_LDFLAGS}
|
${AWESOME_COMMON_REQUIRED_LDFLAGS}
|
||||||
|
|
Loading…
Reference in New Issue