summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren2025-08-22 07:52:59 +0000
committerPaul Spooren2025-08-22 07:52:59 +0000
commite286791b8808f186856fed51c15820e851e20af2 (patch)
tree8c3088ff566ff09042383f6373238cb7962e708d
parentaff2f096235b62cdccc47b9e453c318c8f90e1f6 (diff)
downloadopenwrt-e286791b8808f186856fed51c15820e851e20af2.tar.gz
include: always set macro-prefix-map for reproducibility
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>
-rw-r--r--rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index 929d8e00e8..4b72e218e8 100644
--- 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