summaryrefslogtreecommitdiff
path: root/tools/llvm-shlib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2010-12-29 03:59:14 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2010-12-29 03:59:14 +0000
commit8eac88621626e196db2cb76492dc60c71c7c7fbb (patch)
tree9b5e85c368eac51961bbaa38b8d33ed0d854a71b /tools/llvm-shlib
parent0dc8439f54ca58bf417f68e79d0eb323b387c04e (diff)
downloadllvm-8eac88621626e196db2cb76492dc60c71c7c7fbb.tar.gz
llvm-8eac88621626e196db2cb76492dc60c71c7c7fbb.tar.bz2
llvm-8eac88621626e196db2cb76492dc60c71c7c7fbb.tar.xz
autoconf: Add --disable-embed-stdcxx to suppress linking libstdc++.a into llvm.dll with --enable-shared on Cygming.
Cygwin has stdc++.dll in it's distribution, and we can assume distro's stdc++.dll might be available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r--tools/llvm-shlib/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile
index 60b54350ee..e7605c8f4e 100644
--- a/tools/llvm-shlib/Makefile
+++ b/tools/llvm-shlib/Makefile
@@ -18,11 +18,12 @@ SHARED_LIBRARY = 1
include $(LEVEL)/Makefile.config
ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
- EXPORTED_SYMBOL_FILE = $(ObjDir)/$(LIBRARYNAME).exports
+ EXPORTED_SYMBOL_FILE = $(ObjDir)/$(LIBRARYNAME).exports
+ ifeq (1,$(ENABLE_EMBED_STDCXX))
# It is needed to force static-stdc++.a linked.
- # FIXME: It should be omitted when configure detects system's stdc++.dll.
SHLIB_FRAG_NAMES += stdc++.a.o
+ endif
endif