简体   繁体   中英

What's this kind of bash syntax?

CFLAGS="-g -O0" ./configure

How's CFLAGS="-g -O0" picked up in configure ?

Anyone knows this?

Here, you're setting CFLAGS as an environment variable to be passed into./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). 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.

For more information, you can refer this url.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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