Browse Source

build: Add -static for mingw builds

This avoids a dependency on libssp-0.dll when built with
-fstack-protector-all.
0.10
Wladimir J. van der Laan 11 years ago committed by Philip Kaufmann
parent
commit
6ac0b3be2d
  1. 1
      configure.ac

1
configure.ac

@ -175,6 +175,7 @@ case $host in @@ -175,6 +175,7 @@ case $host in
AC_CHECK_LIB([iphlpapi], [main],, AC_MSG_ERROR(lib missing))
AC_CHECK_LIB([crypt32], [main],, AC_MSG_ERROR(lib missing))
AX_CHECK_LINK_FLAG([[-static]],[LDFLAGS="$LDFLAGS -static"])
AX_CHECK_LINK_FLAG([[-static-libgcc]],[LDFLAGS="$LDFLAGS -static-libgcc"])
AX_CHECK_LINK_FLAG([[-static-libstdc++]],[LDFLAGS="$LDFLAGS -static-libstdc++"])

Loading…
Cancel
Save