From d0152ec8caa77c5f122572302c8c9589b3eb2909 Mon Sep 17 00:00:00 2001 From: Xianyi Date: Sat, 17 Sep 2011 02:27:56 +0800 Subject: [PATCH] Fixed #61 a building bug about setting TARGET and DYNAMIC_ARCH at the same time. --- Makefile.system | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.system b/Makefile.system index f0487ac50..84f41a78f 100644 --- a/Makefile.system +++ b/Makefile.system @@ -27,7 +27,13 @@ HOSTCC = $(CC) endif ifdef TARGET -GETARCH_FLAGS += -DFORCE_$(TARGET) +GETARCH_FLAGS := -DFORCE_$(TARGET) +endif + +#TARGET_CORE will override TARGET which is used in DYNAMIC_ARCH=1. +# +ifdef TARGET_CORE +GETARCH_FLAGS := -DFORCE_$(TARGET_CORE) endif ifdef INTERFACE64