diff options
author | Ron Yorston <rmy@pobox.com> | 2020-11-12 08:02:30 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-11-12 08:02:30 +0000 |
commit | 567728c22dddea4ed33b8a69641ba2e0c3f1f600 (patch) | |
tree | 9e5828a97a64bed1ce4598ff6b0899308896c888 | |
parent | 13eb34205de6e6b6d0e942b92deed921b1f5bcc4 (diff) | |
download | busybox-w32-567728c22dddea4ed33b8a69641ba2e0c3f1f600.tar.gz busybox-w32-567728c22dddea4ed33b8a69641ba2e0c3f1f600.tar.bz2 busybox-w32-567728c22dddea4ed33b8a69641ba2e0c3f1f600.zip |
build system: use static ssp library
The previous commit got rid of a link error but generates a binary
that isn't standalone: it requires libssp-0.dll.
Force the use of the static ssp library. This also requires mingwex
to be added to LDLIBS, since that's what has a dependency on ssp.
Other workarounds are to compile with non-zero _FORTIFY_SOURCE (which
increases the size of the binary) or to add '-u ___strcpy_chk' to
LDFLAGS (likely to be fragile).
-rw-r--r-- | Makefile.flags | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags index 866e2daf8..fdaf5cc79 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -148,7 +148,7 @@ endif | |||
148 | ifeq ($(CONFIG_PLATFORM_MINGW32),y) | 148 | ifeq ($(CONFIG_PLATFORM_MINGW32),y) |
149 | CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident -fno-builtin-strndup | 149 | CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident -fno-builtin-strndup |
150 | EXEEXT = .exe | 150 | EXEEXT = .exe |
151 | LDLIBS += ws2_32 ssp | 151 | LDLIBS += ws2_32 mingwex -l:libssp.a |
152 | endif | 152 | endif |
153 | 153 | ||
154 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) | 154 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) |