From 9547ad3bb9eb6e29cb1e5efd8d5a4fbef10cc8c3 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 25 Jan 2015 01:19:42 +0100 Subject: [PATCH] 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 --- pdns/Makefile-recursor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2