From: Ruben Kerkhof Date: Sun, 25 Jan 2015 00:19:42 +0000 (+0100) Subject: Link the binary with -fstack-protector X-Git-Tag: rec-3.7.0-rc2~40^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2118%2Fhead;p=thirdparty%2Fpdns.git Link the binary with -fstack-protector This fixes the build on FreeBSD 9.2 i386 For the gory details, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=168010 --- diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index 8363b50fd7..af981c69e9 100644 --- a/pdns/Makefile-recursor +++ b/pdns/Makefile-recursor @@ -6,7 +6,7 @@ LOCALSTATEDIR=/var/run/ OPTFLAGS?=-O3 CXXFLAGS:= $(CXXFLAGS) -Iext/rapidjson/include -I$(CURDIR)/ext/polarssl/include -Wall @CF_PIE@ @CF_FORTIFY@ @CF_STACK@ $(OPTFLAGS) $(PROFILEFLAGS) $(ARCHFLAGS) -pthread -Iext/yahttp CFLAGS:=$(CFLAGS) -Wall $(OPTFLAGS) @CF_PIE@ @CF_FORTIFY@ @CF_STACK@ $(PROFILEFLAGS) $(ARCHFLAGS) -I$(CURDIR)/ext/polarssl/include -pthread -LDFLAGS:=$(LDFLAGS) $(ARCHFLAGS) -pthread @LD_RELRO@ @LD_PIE@ +LDFLAGS:=$(LDFLAGS) $(ARCHFLAGS) -pthread @LD_RELRO@ @CF_STACK@ @LD_PIE@ STRIP_BINARIES?=1 LINKCC=$(CXX)