summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2025-12-13 13:35:46 +0100
committerArne Schwabe <arne@rfc2549.org>2025-12-13 13:35:46 +0100
commitf84cfaa71f711806ba7f747e9db028d40aea3149 (patch)
tree42248d176d6d2d4292e7448b5cbd8b7bd468db75
parent834abd0989927296a55c56156bf5a4426f892820 (diff)
Add LINKER:--build-id=none to CmakeLists.txt
This avoids a per-build id that breaks reproducible builds. closes #1825
-rw-r--r--main/src/main/cpp/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/main/cpp/CMakeLists.txt b/main/src/main/cpp/CMakeLists.txt
index 4f344b75..f26c71b5 100644
--- a/main/src/main/cpp/CMakeLists.txt
+++ b/main/src/main/cpp/CMakeLists.txt
@@ -8,6 +8,9 @@ git_describe(OPENVPN3_GIT "${CMAKE_CURRENT_SOURCE_DIR}/openvpn3" "--tags" "--alw
message("OpenVPN 2.x version ${OPENVPN2_GIT}")
message("OpenVPN 3.x version ${OPENVPN3_GIT}")
+# Make builds (like F-droid) happy that want reproducible builds
+add_link_options("LINKER:--build-id=none")
+
# Set mbedtls options
OPTION(ENABLE_PROGRAMS "" OFF)
OPTION(USE_SHARED_MBEDTLS_LIBRARY "" OFF)