]> granicus.if.org Git - pdns/commitdiff
Link the binary with -fstack-protector
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 25 Jan 2015 00:19:42 +0000 (01:19 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 25 Jan 2015 00:19:42 +0000 (01:19 +0100)
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

index 8363b50fd7efc406b22d38833057bf4fcd4bb7d5..af981c69e93b9415f65854cdf490c97b6878377b 100644 (file)
@@ -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)