build: disable the use of -iremap for UML (#21851)
authorFelix Fietkau <nbd@openwrt.org>
Sat, 13 Feb 2016 22:23:32 +0000 (22:23 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 13 Feb 2016 22:23:32 +0000 (22:23 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48718

rules.mk

index a9f3d9dd90b1137e16cb282b296d43dfe84df872..22807da7f07888c979fd7bafebda275783d57f2c 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -118,7 +118,7 @@ else
   TOOLCHAIN_DIR_NAME:=toolchain-$(GNU_TARGET_NAME)
 endif
 
-ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8)),)
+ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),)
   iremap = -iremap $(1):$(2)
 endif