[vlc-commits] MingW: link with static libgcc / libstdc++

Jean-Baptiste Kempf git at videolan.org
Fri Apr 12 12:43:29 CEST 2013


npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 12 13:43:04 2013 +0200| [39efc529048e40e76709ad1e329f1bf1022039e6] | committer: Jean-Baptiste Kempf

MingW: link with static libgcc / libstdc++

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=39efc529048e40e76709ad1e329f1bf1022039e6
---

 configure.ac |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 15b955b..8e3ac13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,6 +99,8 @@ case "${host_os}" in
     AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0501' for Windows XP APIs.])
     AC_DEFINE([_WIN32_IE], 0x0600, [Define to '0x0600' for IE6.0 APIs.])
     AC_DEFINE([_WIN32], 1, [Define to 1 if targetting Windows.])
+    CC="$CC -static-libgcc"
+    CXX="$CXX -static-libgcc -static-libstdc++"
     ;;
 esac
 AM_CONDITIONAL(HAVE_DARWIN, test "${SYS}" = "darwin")



More information about the vlc-commits mailing list