Skip to content

Commit

Permalink
build: Add -static for mingw builds
Browse files Browse the repository at this point in the history
This avoids a dependency on libssp-0.dll when built with
-fstack-protector-all.
  • Loading branch information
laanwj authored and Philip Kaufmann committed Jan 22, 2014
1 parent 4e57e23 commit 6ac0b3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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++"])

Expand Down

0 comments on commit 6ac0b3b

Please sign in to comment.