summaryrefslogtreecommitdiff
path: root/Makefile.config.in
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-09 20:51:47 +0000
committerChris Lattner <sabre@nondot.org>2010-04-09 20:51:47 +0000
commite3a39d40db3893be37107356f0c1680bef8a8ec1 (patch)
tree5748fa8d1e924db930dbf05a4e8a5f3c5626c02d /Makefile.config.in
parent21aa347c2816aa8fc635ad05c5ab786234b32c7e (diff)
downloadllvm-e3a39d40db3893be37107356f0c1680bef8a8ec1.tar.gz
llvm-e3a39d40db3893be37107356f0c1680bef8a8ec1.tar.bz2
llvm-e3a39d40db3893be37107356f0c1680bef8a8ec1.tar.xz
suck the propagating "has dynamic libs" check into a single makefile
variable TARGET_HAS_DYNAMIC_LIBS git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.config.in')
-rw-r--r--Makefile.config.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index 1b61f0908a..7c59e5f3f4 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -321,6 +321,12 @@ CXX_INCLUDE_ARCH := @CXX_INCLUDE_ARCH@
CXX_INCLUDE_32BIT_DIR = @CXX_INCLUDE_32BIT_DIR@
CXX_INCLUDE_64BIT_DIR = @CXX_INCLUDE_64BIT_DIR@
+# TARGET_HAS_DYNAMIC_LIBS - This is set if the target supports dynamic linking
+# .dylib or .so files.
+ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW Minix))
+TARGET_HAS_DYNAMIC_LIBS := 1
+endif
+
# When ENABLE_LLVMC_DYNAMIC is enabled, LLVMC will link libCompilerDriver
# dynamically. This is needed to make dynamic plugins work on some targets
# (Windows).