From 74bda2e320b92c017c1938ab35a18071d22f5127 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Thu, 20 Jul 2006 17:27:58 +0000 Subject: [PATCH] Fix linking on Alpha git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29219 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 6 +++--- lib/CodeGen/Makefile | 1 + tools/llc/Makefile | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 47a5f2c41ca..bc938d1ab19 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -253,8 +253,8 @@ LibTool.Flags := --tag=CXX #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 @@ ifeq ($(LLVMLIBS),JIT) 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 e77a53a337d..62ef1ad727d 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 80af5aa9b17..84689cf7183 100644 --- a/tools/llc/Makefile +++ b/tools/llc/Makefile @@ -56,7 +56,7 @@ endif USEDLIBS += \ LLVMSelectionDAG \ - LLVMCodeGen \ + LLVMCodeGen.a \ LLVMTarget.a \ LLVMipa.a \ LLVMTransforms.a \ -- 2.34.1