ports/mail/rspamd/patches/patch-cmake_Toolset_cmake

17 lines
501 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Fails on ports-gcc arches: see CMakeError.log
egcc: error: unrecognized command line option '-fuse-ld=lld'; did you mean '-fuse-ld=bfd'?
Index: cmake/Toolset.cmake
--- cmake/Toolset.cmake.orig
+++ cmake/Toolset.cmake
@@ -96,7 +96,7 @@ if(NOT LINKER_NAME)
endif()
endif()
-if(LINKER_NAME)
+if(0 AND LINKER_NAME)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=${LINKER_NAME}")
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=${LINKER_NAME}")