diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-11-27 18:37:41 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-11-27 18:37:50 +1100 |
commit | ea963dfd31aeb3526adf8a170a4ca2ed5769f810 (patch) | |
tree | 13ee4fa57f8cf7b1ba91f2363126d405b3fdcef3 | |
parent | 6c67259489e6d9578703d47f0af19b49b005c451 (diff) |
configure.ac : Use '-static-libgcc' with mingw-w64-* compilers.
Without this, libsndfile-1.dll depends on libgcc_s_sjlj-1.dll which
is a pain in the neck. Tried a number of things to fix this, but in
the end it was a suggestion from Jean-Baptiste Kempf on the
mingw-w64-public mailing list that solved it.
Suggested-by: Jean-Baptiste Kempf <jb@videolan.org>
-rw-r--r-- | configure.ac | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 25c6ead..f8f213d 100644 --- a/configure.ac +++ b/configure.ac @@ -557,9 +557,7 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.gnu-binutils" ;; mingw*) - # Linker flag '-Wl,--out-implib' does not work with mingw cross compiler - # so we don't use it here. - SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile-1.def" + SHLIB_VERSION_ARG="-Wc,-static-libgcc -Wl,\$(srcdir)/libsndfile-1.def" win32_target_dll=1 if test x"$enable_shared" = xno ; then win32_target_dll=0 |