zlib-1.2.11

开发板:arm9

交叉编译器arm-fsl-linux-gnueabihf-gcc

编译方式:

./configure -h可以发现zlib并没有提供CC配置,所以

(1)export CC=arm-fsl-linux-gnueabihf-gcc

(2)./configure --prefix=/opt/libz

出现错误:Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).

解决方案参考http://blog.csdn.net/hzh_beyond/article/details/40074081

在configure 删除以下字段,避免将warn处理为error :

echo "Checking for obsessive-compulsive compiler options..." >> configure.log

if try $CC -c $CFLAGS $test.c; then
  :
else
  echo "Compiler error reporting is too harsh for $0 (perhaps remove -Werror)." | tee -a configure.log
  leave 1
fi

另外,后来使用arm-linaro-linux-gnueabihf-gcc并没有以上错误

最新文章

  1. javaEE-----org.springframework.dao.InvalidDataAccessApiUsageException: Write operation
  2. V​S​2​0​1​2​快​捷​键
  3. url中参数以及callback后面的串
  4. IOS 使用SDWebImage实现仿新浪微博照片浏览器
  5. React生命周期浅析
  6. Mysql 允许null 与 default值
  7. WPF中的Style(风格,样式)(转)
  8. 为你的TabBar添加Badge-感谢分享
  9. 哪几个数的阶乘末尾有n个零?
  10. Android 消息处理源代码分析(1)
  11. 第三节 ISBN 码 / ISSN 码
  12. Docker - 容器编排工具 compose 之安装
  13. Python 面向对象(二) 特殊方法
  14. Children’s Queue(hdu1297+递推)
  15. db nosql redis / Redis Sentinel
  16. instrument之Time Profiler总结
  17. win10 将本地项目上传到github (第一次+再次上传)
  18. Can’t call setState (or forceUpdate) on an unmounted component 警告处理方法
  19. Python3.5 学习二十一
  20. DevExpress v17.2新版亮点—DevExtreme篇(一)

热门文章

  1. Python2.7从入门到精通
  2. SQL之CASE WHEN用法详解[1]
  3. environment variable
  4. How to convert mkv to mp4 lossless
  5. js中的异常处理
  6. linux按时间查询日志
  7. 测试md
  8. Cetos 7 系统安装备注事项
  9. A - 敌兵布阵 HDU - 1166 线段树(多点修改当单点修改)
  10. CS academy Binary Flips(dp)