Control: tags -1 patch

Instead of granting an exception for arm64, the more robust approach
would be getting rid of the flag entirely. Please find a patch attached.
>From 2e7bf04bd11f0613e8e43dc600ba4517ffd19800 Mon Sep 17 00:00:00 2001
From: Bastian Germann <[email protected]>
Date: Tue, 18 Nov 2025 08:07:13 +0100
Subject: Only use default linker flags

fatal-warnings are almost guaranteed to break the build when using a more
recent linker than the upstream developers. Get rid of them so the package
can be built with some warnings and be maintained sanely in the long run.

the no-undefined flag is not very important and should be included in
the default set, so drop the whole line.
---
 CMakeLists.txt | 1 -
 1 file changed, 1 deletion(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -271,7 +271,6 @@ set(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG")
 set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
 set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
 
-set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined -Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}")
 
 # If no build type is set, pick a reasonable one
 if(DEBUG_SANITIZERS)

Reply via email to