error: macro "__DATE__" might prevent reproducible

本文共有534个字,关键词:

问题:Ubuntu server安装声卡驱动时进行make时报错:error: macro "__DATE__" might prevent reproducible builds
解决:修改Makefile.conf文件
方法:
vim Makefile.conf在里面加上
EXTRA_CFLAGS +=-Wno-error=date-time (不把该行为当成错误)
EXTRA_CFLAGS +=-Wno-date-time(不把该行为当成警告)

注:有人说修改Makefile文件,但是如果有Makefile.conf时修改Makefile.conf,主要是查找文件中是否有CFLAGS配置
注:Makefile.conf文件,就在你进行sudo make时所在的目录,并不是系统文件
参考:http://blog.csdn.net/mike8825/article/details/52057637
https://askubuntu.com/questions/593566/how-to-disable-werror-date-time-macro-date-might-prevent-reproducible-bui

版权声明:本文为作者原创,如需转载须联系作者本人同意,未经作者本人同意不得擅自转载。
添加新评论
暂无评论