summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-02-11 08:44:13 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-02-11 08:44:13 +0000
commit9dfffc6c9fed18d7dc665705e77d026fcc16c92e (patch)
tree6b6da7e842a99018b8846b4778ee31bd7e9404ec /llvm/tools
parenta1968b0fc7bcc48c61462c414b8ce04592f9e4d4 (diff)
downloadbcm5719-llvm-9dfffc6c9fed18d7dc665705e77d026fcc16c92e.tar.gz
bcm5719-llvm-9dfffc6c9fed18d7dc665705e77d026fcc16c92e.zip
Try this. Darwin -> LTO, PIC -> LTO + possibly gold too.
llvm-svn: 64299
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/Makefile5
-rw-r--r--llvm/tools/lto/Makefile8
2 files changed, 5 insertions, 8 deletions
diff --git a/llvm/tools/Makefile b/llvm/tools/Makefile
index a296f818702..471cdd0c2de 100644
--- a/llvm/tools/Makefile
+++ b/llvm/tools/Makefile
@@ -25,10 +25,11 @@ PARALLEL_DIRS := llvm-config \
include $(LEVEL)/Makefile.config
-# only build new lto project on Darwin for now
+# build lto project on Darwin or if PIC is enabled
ifeq ($(OS),Darwin)
PARALLEL_DIRS += lto
-
+else ($(ENABLE_PIC),1)
+PARALLEL_DIRS += lto
ifdef BINUTILS_INCDIR
PARALLEL_DIRS += gold
endif
diff --git a/llvm/tools/lto/Makefile b/llvm/tools/lto/Makefile
index 69014d781ff..f0f6da7191a 100644
--- a/llvm/tools/lto/Makefile
+++ b/llvm/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
OpenPOWER on IntegriCloud