Description: Don't set the hardening flags manually.
Instead take them from dpkg-buildflags which automatically disables
unsupported flags on the current architecture.

---
 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 5ad8db9..83eb3f0 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ CC 	?=	gcc
 INSTALL	=	install
 IFLAGS  = -idirafter dummyinc
 #CFLAGS = -g
-CFLAGS	?=	-O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 \
+CFLAGS	+=	-O2 \
 	-Wall -W -Wshadow -Werror -Wformat-security \
 	-D_FORTIFY_SOURCE=2 \
 	#-pedantic -Wconversion
@@ -12,7 +12,6 @@ PREFIX = $(DESTDIR)/usr
 
 LIBS	=	`./vsf_findlibs.sh`
 LINK	=	-Wl,-s
-LDFLAGS	=	-fPIE -pie -Wl,-z,relro -Wl,-z,now
 
 OBJS	=	main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
 		tunables.o ftpdataio.o secbuf.o ls.o \
-- 
2.7.4

