diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-12-29 03:59:14 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-12-29 03:59:14 +0000 |
commit | 8eac88621626e196db2cb76492dc60c71c7c7fbb (patch) | |
tree | 9b5e85c368eac51961bbaa38b8d33ed0d854a71b /autoconf | |
parent | 0dc8439f54ca58bf417f68e79d0eb323b387c04e (diff) |
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 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 93a31c894a..0cc3d3ef50 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -568,6 +568,18 @@ case "$enableval" in *) AC_MSG_ERROR([Invalid setting for --enable-shared. Use "yes" or "no"]) ;; esac +dnl Allow libstdc++ is embedded in LLVM.dll. +AC_ARG_ENABLE(embed-stdcxx, + AS_HELP_STRING([--enable-embed-stdcxx], + [Build a shared library with embedded libstdc++ for Win32 DLL (default is YES)]),, + enableval=default) +case "$enableval" in + yes) AC_SUBST(ENABLE_EMBED_STDCXX,[1]) ;; + no) AC_SUBST(ENABLE_EMBED_STDCXX,[0]) ;; + default) AC_SUBST(ENABLE_EMBED_STDCXX,[1]) ;; + *) AC_MSG_ERROR([Invalid setting for --enable-embed-stdcxx. Use "yes" or "no"]) ;; +esac + dnl Enable embedding timestamp information into build. AC_ARG_ENABLE(timestamps, AS_HELP_STRING([--enable-timestamps], |