简体   繁体   English

这种 bash 语法是什么?

[英]What's this kind of bash syntax?

CFLAGS="-g -O0" ./configure

How's CFLAGS="-g -O0" picked up in configure ? CFLAGS="-g -O0"是如何在configure中获取的?

Anyone knows this?有人知道吗?

Here, you're setting CFLAGS as an environment variable to be passed into./configure.在这里,您将 CFLAGS 设置为要传递到 ./configure 的环境变量。 You can set any number of environment variables this way if you happen to need more than one.如果您碰巧需要多个环境变量,您可以通过这种方式设置任意数量的环境变量。

-g: C compilation options which relate to optimization or debugging (usually just -g or -O). -g:C 与优化或调试相关的编译选项(通常只是 -g 或 -O)。 Usually this wouldn't include -I options to specify the include directories, because then you couldn't override it on the command line easily as in the above example.通常这不会包括 -I 选项来指定包含目录,因为那样你就不能像上面的例子那样在命令行上轻松地覆盖它。

For more information, you can refer this url.有关更多信息,您可以参考此 url。

http://makepp.sourceforge.net/1.19/makepp_tutorial.html http://makepp.sourceforge.net/1.19/makepp_tutorial.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM