Fix linking on Alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29219 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.rules b/Makefile.rules
index 47a5f2c..bc938d1 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -253,8 +253,8 @@
#Make Floating point ieee complient on alpha
ifeq ($(ARCH),Alpha)
- CXX.Flags += -mieee
- CPP.BaseFlags += -mieee
+ CXX.Flags += -mieee -fPIC
+ CPP.BaseFlags += -mieee -fPIC
endif
#--------------------------------------------------------------------
@@ -609,7 +609,7 @@
Link += -dlopen self
# Generic JIT libraries
-JIT_LIBS := LLVMInterpreter LLVMJIT LLVMCodeGen LLVMExecutionEngine
+JIT_LIBS := LLVMInterpreter LLVMJIT LLVMCodeGen.a LLVMExecutionEngine
# You can enable the X86 JIT on a non-X86 host by setting the flag
# ENABLE_X86_JIT on the make command line. If not, it will still be
diff --git a/lib/CodeGen/Makefile b/lib/CodeGen/Makefile
index e77a53a..62ef1ad 100644
--- a/lib/CodeGen/Makefile
+++ b/lib/CodeGen/Makefile
@@ -10,6 +10,7 @@
LEVEL = ../..
LIBRARYNAME = LLVMCodeGen
PARALLEL_DIRS = SelectionDAG
+BUILD_ARCHIVE = 1
include $(LEVEL)/Makefile.common
diff --git a/tools/llc/Makefile b/tools/llc/Makefile
index 80af5aa..84689cf 100644
--- a/tools/llc/Makefile
+++ b/tools/llc/Makefile
@@ -56,7 +56,7 @@
USEDLIBS += \
LLVMSelectionDAG \
- LLVMCodeGen \
+ LLVMCodeGen.a \
LLVMTarget.a \
LLVMipa.a \
LLVMTransforms.a \