aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-04-08 01:49:06 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-04-08 01:49:55 +0200
commit6eb216a40a3f523c560a13df6c617d50a5e3dcdf (patch)
tree98ed187063aab964164217a98e5cf77746c73a00
parent9ce6f477167c598c122ab6f558ac8a95ece9c5c3 (diff)
downloadsdn-6eb216a40a3f523c560a13df6c617d50a5e3dcdf.tar.gz
sdn-6eb216a40a3f523c560a13df6c617d50a5e3dcdf.tar.xz
sdn-6eb216a40a3f523c560a13df6c617d50a5e3dcdf.zip
Remove linker preference from CMakeLists.txt
ld.gold doesn't understand all options that ld.bfd does. In particular, this broke AUR builds with the current makepkg.conf.
-rw-r--r--CMakeLists.txt7
1 files changed, 0 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 175139a..50ebf3b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,13 +7,6 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
"${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-misleading-indentation -pedantic")
endif ()
-# Since we use a language with slow compilers, let's at least use a fast linker
-execute_process (COMMAND ${CMAKE_CXX_COMPILER} -fuse-ld=gold -Wl,--version
- ERROR_QUIET OUTPUT_VARIABLE ld_version)
-if ("${ld_version}" MATCHES "GNU gold")
- set (CMAKE_EXE_LINKER_FLAGS "-fuse-ld=gold ${CMAKE_EXE_LINKER_FLAGS}")
-endif ()
-
find_package (PkgConfig REQUIRED)
pkg_check_modules (NCURSESW QUIET ncursesw)