My Summaries

来源:互联网 发布:bash shell windows 编辑:程序博客网 时间:2024/06/05 11:46

Kinds of questions and answers that I encounter:


1、在Makefile文件中遇到一些变量,如CFLAGS、LDLIBS等,这些不是gcc命令的builtin变量,而是make命令的builtin变量,以CFLAGS为例,在使用make命令解析执行Makefile编译脚本时,make命令会将CFLAGS的值作为编译options/flags传递给gcc命令,从而影响编译结果。

CFLAGS、LDLIBS等builtin变量的解释可以查阅make官方文档make.pdf

For Instances:

CFLAGS:extra flags to give to the C compiler

LDLIBS:library flags or names given to compilers when they are supposed to invoke the linker "ld"

LDFLAGS:extra flags to give to compilers when they are supposed to invoke the linker "ld"


2、

0 0
原创粉丝点击