zip/unzip源码交叉编译

交叉编译:
修改zip30/unix/Makefile
CROSS=/opt/buildroot_350/build_arm/staging_dir/usr/bin/arm-linux-
CC = ${CROSS}gcc
BIND = $(CC)
AS = $(CC) -c
#CPP = /lib/cpp
CPP = C C − E E = 编译: [ g u o w e n x u e @ l o c a l h o s t z i p 30 ] {CC} -E E = 编译: [guowenxue@localhost zip30] CCEE=编译:[guowenxue@localhostzip30] make -f unix/Makefile generic

修改unzip60/unix/Makefile
CROSS=/opt/buildroot_350/build_arm/staging_dir/usr/bin/arm-linux-
CC = ${CROSS}gcc # try using “gcc” target rather than changing this (CC and LD
LD = $(CC)# must match, else “unresolved symbol: ___main” is possible)
AS = ${CROSS}as

STRIP = ${CROSS}strip

编译:
[guowenxue@localhost unzip60]$ make generic -f unix/Makefile

你可能感兴趣的:(unix,linux)