mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -21,6 +21,18 @@ TOOLCHAIN_WRAPPER_OPTS = \
|
||||
$(call qstrip,$(BR2_SSP_OPTION)) \
|
||||
$(call qstrip,$(BR2_TARGET_OPTIMIZATION))
|
||||
|
||||
ifeq ($(BR2_REPRODUCIBLE),y)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -Wl,--build-id=none
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -ffile-prefix-map=$(BASE_DIR)=buildroot
|
||||
else
|
||||
TOOLCHAIN_WRAPPER_OPTS += -D__FILE__=\"\" -D__BASE_FILE__=\"\" -Wno-builtin-macro-redefined
|
||||
endif
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_7),)
|
||||
TOOLCHAIN_WRAPPER_OPTS += -DBR_NEED_SOURCE_DATE_EPOCH
|
||||
endif
|
||||
endif
|
||||
|
||||
# We create a list like '"-mfoo", "-mbar", "-mbarfoo"' so that each flag is a
|
||||
# separate argument when used in execv() by the toolchain wrapper.
|
||||
TOOLCHAIN_WRAPPER_ARGS += \
|
||||
|
||||
Reference in New Issue
Block a user