aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-11-12 08:02:30 +0000
committerRon Yorston <rmy@pobox.com>2020-11-12 08:02:30 +0000
commit567728c22dddea4ed33b8a69641ba2e0c3f1f600 (patch)
tree9e5828a97a64bed1ce4598ff6b0899308896c888
parent13eb34205de6e6b6d0e942b92deed921b1f5bcc4 (diff)
downloadbusybox-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.flags2
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
148ifeq ($(CONFIG_PLATFORM_MINGW32),y) 148ifeq ($(CONFIG_PLATFORM_MINGW32),y)
149CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident -fno-builtin-strndup 149CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident -fno-builtin-strndup
150EXEEXT = .exe 150EXEEXT = .exe
151LDLIBS += ws2_32 ssp 151LDLIBS += ws2_32 mingwex -l:libssp.a
152endif 152endif
153 153
154ifneq ($(CONFIG_PLATFORM_MINGW32),y) 154ifneq ($(CONFIG_PLATFORM_MINGW32),y)