Revert r64299: it breaks the build when configured
authorDuncan Sands <baldrick@free.fr>
Wed, 11 Feb 2009 13:23:49 +0000 (13:23 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 11 Feb 2009 13:23:49 +0000 (13:23 +0000)
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/Makefile
tools/lto/Makefile

index 471cdd0c2de90af28fc3e821df26ca912b1a9a9d..a296f8187024aabd6a6da33f959a0db91e7ff946 100644 (file)
@@ -25,11 +25,10 @@ PARALLEL_DIRS := llvm-config  \
 
 include $(LEVEL)/Makefile.config
 
-# build lto project on Darwin or if PIC is enabled
+# only build new lto project on Darwin for now
 ifeq ($(OS),Darwin)
 PARALLEL_DIRS += lto
-else ($(ENABLE_PIC),1)
-PARALLEL_DIRS += lto
+
 ifdef BINUTILS_INCDIR
 PARALLEL_DIRS += gold
 endif
index f0f6da7191a258c39f045e84543d48a1472792ba..69014d781ff1e7bea233a23da98f796d5aa49b83 100644 (file)
@@ -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