From 12817413113b6d0e33ecedea6723bbd03d2eb012 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 26 Jan 2009 03:04:57 +0000 Subject: [PATCH] Build libLTO on any platform so long as PIC is enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62987 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/Makefile | 3 +-- tools/lto/Makefile | 8 ++------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 519717ad98d..909a54843b5 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -25,8 +25,7 @@ PARALLEL_DIRS := llvm-config \ include $(LEVEL)/Makefile.config -# only build new lto project on Darwin for now -ifeq ($(OS),Darwin) +ifeq ($(ENABLE_PIC),1) PARALLEL_DIRS += lto endif diff --git a/tools/lto/Makefile b/tools/lto/Makefile index 69014d781ff..f0f6da7191a 100644 --- a/tools/lto/Makefile +++ b/tools/lto/Makefile @@ -16,12 +16,8 @@ LIBRARYNAME = LTO include $(LEVEL)/Makefile.config LINK_LIBS_IN_SHARED = 1 -ifeq ($(OS),Darwin) - SHARED_LIBRARY = 1 - DONT_BUILD_RELINKED = 1 -else - BUILD_ARCHIVE = 1 -endif +SHARED_LIBRARY = 1 +DONT_BUILD_RELINKED = 1 LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter