Cmake: pass 'undefined' with double dash so alternative linker can be used
This commit is contained in:
committed by
Yorik van Havre
parent
393a4b71f3
commit
a8cdbe4672
@@ -73,7 +73,7 @@ macro(CompilerChecksAndSetups)
|
||||
endif()
|
||||
else(BUILD_DYNAMIC_LINK_PYTHON)
|
||||
if(CMAKE_COMPILER_IS_CLANGXX)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-undefined,dynamic_lookup")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--undefined,dynamic_lookup")
|
||||
endif()
|
||||
endif(BUILD_DYNAMIC_LINK_PYTHON)
|
||||
endif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
|
||||
|
||||
@@ -163,7 +163,7 @@ target_link_libraries(area area-native ${area_LIBS} ${area_native_LIBS})
|
||||
# TODO why CMAKE_SHARED_LINKER_FLAGS is not used here?
|
||||
# This is a dirty workaround!
|
||||
if(NOT BUILD_DYNAMIC_LINK_PYTHON AND CMAKE_COMPILER_IS_CLANGXX)
|
||||
target_link_libraries(area "-Wl,-undefined,dynamic_lookup")
|
||||
target_link_libraries(area "-Wl,--undefined,dynamic_lookup")
|
||||
endif()
|
||||
|
||||
SET_BIN_DIR(area area /Mod/CAM)
|
||||
|
||||
Reference in New Issue
Block a user