Make sure to get the value of ARCH before we use it
llvm-svn: 6746
diff --git a/llvm/lib/ExecutionEngine/Makefile b/llvm/lib/ExecutionEngine/Makefile
index 7aab305..f710dc0 100644
--- a/llvm/lib/ExecutionEngine/Makefile
+++ b/llvm/lib/ExecutionEngine/Makefile
@@ -2,6 +2,9 @@
TOOLNAME = lli
PARALLEL_DIRS = Interpreter JIT
+# Get the config name...
+include $(LEVEL)/Makefile.config
+
# Generic JIT libraries
JITLIBS = lli-jit codegen
ARCHLIBS =
@@ -10,6 +13,8 @@
JITLIBS += x86
# X86 doesn't require any ARCHLIBS
+
+
# What the Sparc JIT requires
ifeq ($(ARCH),Sparc)
JITLIBS += sparc