Chinaunix首页 | 论坛 | 博客
  • 博客访问: 236003
  • 博文数量: 51
  • 博客积分: 1065
  • 博客等级: 少尉
  • 技术积分: 556
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-11 14:50
文章分类

全部博文(51)

文章存档

2012年(1)

2011年(6)

2010年(39)

2008年(1)

2007年(4)

分类:

2010-06-12 11:19:04


交叉编译:
修改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 = ${CC} -E
E =
编译:
[guowenxue@localhost zip30]$ 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 
阅读(8523) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~