vsftpd交叉编译

vsftpd交叉编译:

 1.cd vsftpd-3.0.3

2.git df Makefile

 1 diff --git a/Makefile b/Makefile
 2 index c63ed1b..1337073 100644
 3 --- a/Makefile
 4 +++ b/Makefile
 5 @@ -1,5 +1,5 @@
 6  # Makefile for systems with GNU tools
 7 -CC     =       gcc
 8 +CC     =       arm-linux-gnueabihf-gcc
 9  INSTALL        =       install
10  IFLAGS  = -idirafter dummyinc
11  #CFLAGS = -g
12 @@ -10,7 +10,7 @@ CFLAGS        =       -O2 -fPIE -fstack-protector --param=ssp-buffer-s
13 
14  LIBS   =       `./vsf_findlibs.sh`
15  LINK   =       -Wl,-s
16 -LDFLAGS        =       -fPIE -pie -Wl,-z,relro -Wl,-z,now
17 +LDFLAGS        =       -fPIE -Wl,-z,relro -Wl,-z,now
18 
19  OBJS   =       main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o 
20                 tunables.o ftpdataio.o secbuf.o ls.o 

3.make

原文地址:https://www.cnblogs.com/live-program/p/11044099.html