diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-22 08:44:24 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-01-22 10:21:34 +0100 |
commit | 6ac0b3be2d5c5277805c16b56ee5b2e59ba9e84c (patch) | |
tree | 7f5a8eeb8fffc922219a69dccc629cc27c05d378 | |
parent | 4e57e23833fa93627e6e54e2df069775e99244fc (diff) |
build: Add -static for mingw builds
This avoids a dependency on libssp-0.dll when built with
-fstack-protector-all.
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e29ec15502..e2eded84e5 100644 --- a/configure.ac +++ b/configure.ac @@ -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++"]) |