From 535e3e8df963e2d8327718518efd9ddc31faf42a Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Wed, 11 Feb 2009 13:23:49 +0000 Subject: Revert r64299: it breaks the build when configured without --enable-pic, like my nightly tester. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64302 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lto/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/lto/Makefile') diff --git a/tools/lto/Makefile b/tools/lto/Makefile index f0f6da7191..69014d781f 100644 --- a/tools/lto/Makefile +++ b/tools/lto/Makefile @@ -16,8 +16,12 @@ LIBRARYNAME = LTO include $(LEVEL)/Makefile.config LINK_LIBS_IN_SHARED = 1 -SHARED_LIBRARY = 1 -DONT_BUILD_RELINKED = 1 +ifeq ($(OS),Darwin) + SHARED_LIBRARY = 1 + DONT_BUILD_RELINKED = 1 +else + BUILD_ARCHIVE = 1 +endif LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter -- cgit v1.2.3