aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-01-22 08:44:24 +0100
committerPhilip Kaufmann <[email protected]>2014-01-22 10:21:34 +0100
commit6ac0b3be2d5c5277805c16b56ee5b2e59ba9e84c (patch)
tree7f5a8eeb8fffc922219a69dccc629cc27c05d378
parentenable full GCC Stack-smashing protection for all OSes (diff)
downloaddiscoin-6ac0b3be2d5c5277805c16b56ee5b2e59ba9e84c.tar.xz
discoin-6ac0b3be2d5c5277805c16b56ee5b2e59ba9e84c.zip
build: Add -static for mingw builds
This avoids a dependency on libssp-0.dll when built with -fstack-protector-all.
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e29ec1550..e2eded84e 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++"])