Index: cmake/Modules/CompilerRTDarwinUtils.cmake =================================================================== --- cmake/Modules/CompilerRTDarwinUtils.cmake +++ cmake/Modules/CompilerRTDarwinUtils.cmake @@ -81,7 +81,7 @@ set(working_archs) foreach(arch ${archs}) - set(arch_linker_flags "-arch ${arch} ${os_linker_flags}") + set(arch_linker_flags "-arch ${arch} ${os_linker_flags} ${CMAKE_EXE_LINKER_FLAGS}") if(TEST_COMPILE_ONLY) try_compile_only(CAN_TARGET_${os}_${arch} -v -arch ${arch} ${DARWIN_${os}_CFLAGS}) else()