怎么改变在Makefile中的install -s,默认调用的strip为调用交叉编译的arm-linux-strip?
Makefile中:
install: chat
mkdir -p $(BINDIR) $(MANDIR)
$(INSTALL) -s -c chat $(BINDIR)
$(INSTALL) -c -m 644 chat.8 $(MANDIR)
运行结果:
cd chat; make install
make[1]: Entering directory `/home/pwb/workdir/pppoe/ppp-2.4.4/chat'
mkdir -p /home/pwb/workdir/genimages-v1.0.3/mainfs/mnt/syslib/usr/sbin /home/pwb/workdir/genimages-v1.0.3/mainfs/mnt/syslib/usr/share/man/man8
install -s -c chat /home/pwb/workdir/genimages-v1.0.3/mainfs/mnt/syslib/usr/sbin
strip: Unable to recognise the format of the input file `/home/pwb/workdir/genimages-v1.0.3/mainfs/mnt/syslib/usr/sbin/chat'
install: strip failed
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/pwb/workdir/pppoe/ppp-2.4.4/chat'
make: *** [install-progs] Error 2
PS:当然可以直接把Makefile中的$(INSTALL) -s -c chat $(BINDIR)语句中的-s去掉 那样是可以的
我用的是开源的代码,每次用./configure时,各个目录中的Makefile又会重新生成,所以我每次有得改,觉得很麻烦;有什么办法使install -s不是调用默认的strip 而是调用交叉编译的strip?改configure文件?
阅读(10777) | 评论(0) | 转发(0) |