mirror of https://github.com/hak5/openwrt-owl.git
build: Pass -iremap gcc option as a single argument
Passing -iremap argument separately causes problems with projects that use scons and its ParseFlags function. Consider this SConscript example: env = Environment() d = env.ParseFlags("-iremap one:two") ParseFlags will interpret one:two as a file name and the returned dict d will contain only "-iremap". When the -iremap is passed to the compiler without an argument, compilation obviously fails. Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>owl
parent
7096ed58fd
commit
202ae4cc6a
2
rules.mk
2
rules.mk
|
@ -139,7 +139,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),)
|
ifeq ($(or $(CONFIG_EXTERNAL_TOOLCHAIN),$(CONFIG_GCC_VERSION_4_8),$(CONFIG_TARGET_uml)),)
|
||||||
iremap = -iremap $(1):$(2)
|
iremap = -iremap$(1):$(2)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PACKAGE_DIR:=$(BIN_DIR)/packages
|
PACKAGE_DIR:=$(BIN_DIR)/packages
|
||||||
|
|
Loading…
Reference in New Issue