]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
include: always set macro-prefix-map for reproducibility iremap 19838/head
authorPaul Spooren <mail@aparcar.org>
Fri, 22 Aug 2025 07:52:59 +0000 (09:52 +0200)
committerPaul Spooren <mail@aparcar.org>
Fri, 22 Aug 2025 07:52:59 +0000 (09:52 +0200)
The current implementation either adds macro-prefix-map XOR file-prefix-map (if
REPRODUCIBLE_DEBUG_INFO is defined). Let's have the former always active to
improve the reproducibility.

Signed-off-by: Paul Spooren <mail@aparcar.org>
rules.mk

index 929d8e00e8d02a393a9fbc1a488ea40c379e30a2..4b72e218e89e2e511dcf95d3de417eda4a05dd3b 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -174,7 +174,7 @@ else
 endif
 
 ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_TARGET_uml)),)
-  iremap = -f$(if $(CONFIG_REPRODUCIBLE_DEBUG_INFO),file,macro)-prefix-map=$(1)=$(2)
+  iremap = -fmacro-prefix-map=$(1)=$(2) $(if $(CONFIG_REPRODUCIBLE_DEBUG_INFO),-ffile-prefix-map=$(1)=$(2))
 endif
 
 PACKAGE_DIR?=$(BIN_DIR)/packages