packages/net/vsftpd/patches/002-find_libs.patch
jow f44fb45149 [packages] vsftpd: override LDFLAGS as well to avoid -fpic requirement, refresh patches (#11263)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@31241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-04-10 14:54:07 +00:00

14 lines
332 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ CFLAGS = -O2 -fPIE -fstack-protector --p
-D_FORTIFY_SOURCE=2 \
#-pedantic -Wconversion
-LIBS = `./vsf_findlibs.sh`
-LINK = -Wl,-s
+LIBS = -lcrypt -lnsl
+LINK =
LDFLAGS = -fPIE -pie -Wl,-z,relro -Wl,-z,now
OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \