美文网首页
编译内核时的CFLAGS

编译内核时的CFLAGS

作者: 叶迎宪 | 来源:发表于2022-03-15 01:51 被阅读0次

一般定义在根目录的Makefile

KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                   -fno-strict-aliasing -fno-common -fshort-wchar \
                   -Werror-implicit-function-declaration \
                   -Wno-format-security \
                   -std=gnu89 $(call cc-option,-fno-PIE)

相关文章

网友评论

      本文标题:编译内核时的CFLAGS

      本文链接:https://www.haomeiwen.com/subject/fpyedrtx.html