diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 648173c1b..5c924b34d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,6 +9,21 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") include(mig) include(pyc) +# Force linker settings to match 3.30.5 behavior +# Apple's ld64 in cctools does not support the `--dependency-file` flag +set(CMAKE_CXX_LINKER_DEPFILE_SUPPORTED FALSE) +set(CMAKE_C_LINKER_DEPFILE_SUPPORTED FALSE) +set(CMAKE_CXX_LINK_DEPENDS_USE_LINKER FALSE) +set(CMAKE_C_LINK_DEPENDS_USE_LINKER FALSE) + +set(CMAKE_CXX_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED FALSE) +set(CMAKE_C_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED FALSE) + +set(CMAKE_CXX_LINKER_INFORMATION_LOADED FALSE) +set(CMAKE_C_LINKER_INFORMATION_LOADED FALSE) +set(CMAKE_CXX_USE_LINKER_INFORMATION FALSE) +set(CMAKE_C_USE_LINKER_INFORMATION FALSE) + # # start core components #