Skip to content

Commit 6ac0b3b

Browse files
laanwjPhilip Kaufmann
authored andcommitted
build: Add -static for mingw builds
This avoids a dependency on libssp-0.dll when built with -fstack-protector-all.
1 parent 4e57e23 commit 6ac0b3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ case $host in
175175
AC_CHECK_LIB([iphlpapi], [main],, AC_MSG_ERROR(lib missing))
176176
AC_CHECK_LIB([crypt32], [main],, AC_MSG_ERROR(lib missing))
177177

178+
AX_CHECK_LINK_FLAG([[-static]],[LDFLAGS="$LDFLAGS -static"])
178179
AX_CHECK_LINK_FLAG([[-static-libgcc]],[LDFLAGS="$LDFLAGS -static-libgcc"])
179180
AX_CHECK_LINK_FLAG([[-static-libstdc++]],[LDFLAGS="$LDFLAGS -static-libstdc++"])
180181

0 commit comments

Comments
 (0)