1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Andrew Bower <andrew@bower.uk>
Date: Thu, 8 May 2025 23:48:54 +0100
Forwarded: not-needed
Subject: Omit build flags from binaries
Support reproducible builds by not including the build flags (including paths)
in the binaries. In Debian systems the build pedigree can be obtained
independently.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9170be7..5664ac2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1028,7 +1028,7 @@ endif ()
# Substitutions in files.
string(TOUPPER "${CMAKE_BUILD_TYPE}" GETDNS_BUILD_RELTYPE)
-string(REPLACE "\"" "\\\"" GETDNS_BUILD_CFLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${GETDNS_BUILD_RELTYPE}}")
+string(REPLACE "\"" "\\\"" GETDNS_BUILD_CFLAGS "<omitted>")
configure_file(cmake/include/cmakeconfig.h.in config.h)
configure_file(src/getdns/getdns.h.in getdns/getdns.h)
configure_file(src/getdns/getdns_extra.h.in getdns/getdns_extra.h)
|