X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=rules.mk;h=2af63520162d933607d6cda2230d409a169560b3;hb=3ccc2ebe01c179cb48b04e812ff15d16fdaf711b;hp=d90e0ffed09867bc3f39278b7109cdfa523391f1;hpb=da9d760ea1c0450e9e6b1c0cdd5331e633c75887;p=openwrt%2Fopenwrt.git diff --git a/rules.mk b/rules.mk index d90e0ffed0..2af6352016 100644 --- a/rules.mk +++ b/rules.mk @@ -140,10 +140,10 @@ else endif ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),) - iremap = -iremap$(1):$(2) - # just overwrite iremap for GCC 8.1 and higher to keep backward compatibility - ifeq ($(CONFIG_GCC_VERSION_8),y) + ifeq ($(CONFIG_GCC_USE_EMBEDDED_PATH_REMAP),y) iremap = -fmacro-prefix-map=$(1)=$(2) + else + iremap = -iremap$(1):$(2) endif endif