summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-29 21:12:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-29 21:12:26 +0000
commit74deeb84bd33f0af8b77ae47530789ad17a1f4c2 (patch)
tree44824451c145cb1f45ebc40d43fac3a5002b1fe2 /lib/Makefile
parent6c839926babc7e3404974a4a5b39c6896d7fbf35 (diff)
downloadllvm-74deeb84bd33f0af8b77ae47530789ad17a1f4c2.tar.gz
llvm-74deeb84bd33f0af8b77ae47530789ad17a1f4c2.tar.bz2
llvm-74deeb84bd33f0af8b77ae47530789ad17a1f4c2.tar.xz
Don't build LLVMC when configured with --disable-pic (it needs requires shared
module support to build). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 7199da52d4..147313ca76 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -8,8 +8,16 @@
##===----------------------------------------------------------------------===##
LEVEL = ..
-PARALLEL_DIRS = VMCore AsmParser Bitcode Archive Analysis Transforms CodeGen \
- Target ExecutionEngine Debugger Linker CompilerDriver MC
+include $(LEVEL)/Makefile.config
+
+PARALLEL_DIRS := VMCore AsmParser Bitcode Archive Analysis Transforms CodeGen \
+ Target ExecutionEngine Debugger Linker MC
+
+# Only build the CompilerDriver when PIC is enabled.
+
+ifeq ($(ENABLE_PIC),1)
+PARALLEL_DIRS += CompilerDriver
+endif
include $(LEVEL)/Makefile.common