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 | 495afdffd75d1493cb44c9486e3a6c8d56128e5c (patch) | |
| tree | 3d01faa98f5dcd40810a1680005fd3c190e42a5f /llvm/autoconf/configure.ac | |
| parent | c6fce17b3eb6daaefd349ecd8ceb26cd98b7a709 (diff) | |
| download | bcm5719-llvm-495afdffd75d1493cb44c9486e3a6c8d56128e5c.tar.gz bcm5719-llvm-495afdffd75d1493cb44c9486e3a6c8d56128e5c.zip | |
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.
llvm-svn: 122622
Diffstat (limited to 'llvm/autoconf/configure.ac')
| -rw-r--r-- | llvm/autoconf/configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index 93a31c894ad..0cc3d3ef506 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/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], |

