Commit 38ccae9b authored by Ian Goldberg's avatar Ian Goldberg
Browse files

Add more hardening options to Makefile.mingw

Add -fno-strict-overflow -Wall -Wextra -Wno-unused-parameter
    -Wno-missing-field-initializers -Wformat-security
parent c46bceb8
......@@ -59,10 +59,14 @@ TARGET = pidgin-otr.dll
# The target zipfile
ZIPFILE = pidgin-otr-$(PIDGIN_OTR_VERSION).zip
CC_HARDENING_OPTIONS ?= -fstack-protector-all -fPIE -Wstack-protector -fwrapv --param ssp-buffer-size=1
# Compiling with -fPIE and linking with -pie causes the plugin to crash
# on load, so we'll skip those.
CC_HARDENING_OPTIONS ?= -fstack-protector-all -Wstack-protector -fwrapv \
--param ssp-buffer-size=1 -fno-strict-overflow -Wall -Wextra \
-Wno-unused-parameter -Wno-missing-field-initializers -Wformat-security
# In theory, we'd also like the following:
# LD_HARDENING_OPTIONS ?= -dynamicbase --nxcompat -pie -z relro -z now
LD_HARDENING_OPTIONS ?= --dynamicbase --nxcompat -pie
LD_HARDENING_OPTIONS ?= --dynamicbase --nxcompat
CC = i586-mingw32msvc-gcc
LDFLAGS = -Wl,--enable-auto-image-base $(LD_HARDENING_OPTIONS)
......@@ -76,8 +80,9 @@ override CFLAGS += -g -O2 -Wall $(CC_HARDENING_OPTIONS) \
all: $(TARGET)
$(MAKE) -C po -f Makefile.mingw
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment