CFLAGS

CFLAGS and CXXFLAGS is the variable names of of environment or variables of the Makefile which can be used to parameterize the compilation of a Logiciel.

These variables are usually positioned in Makefile and are added when the compiler is called. If they are not specified in the Makefile, then they will be taken directly starting from the environment, if they are present. Tools (in particular . /configure of Autoconf) will generate automatically of Makefiles with these variable correctly positioned.

CFLAGS makes it possible to add parameters on the line of order which calls the compiler C, whereas CXXFLAGS is used for compilation C++. In the same way, a similar variable, CPPFLAGS , make it possible to place from the parameters on the line of order of the Préprocesseur C.

This parameter setting has in general as a goal to optimize or die bug R the code, for example -g, -O2 gold (GCC - specific) -march=athlon.

See too

External references

  • GNU optimization page
  • Gentoo Wiki CFLAG guides
  • Gentoo Wiki guides to safe CFLAGS
  • Linux Review one page optimized GCC compiling

Random links:Right and justice | Beretta Models 2/1/3 | Editions Urchin | Grzymisław de Świecie | Dimítris Papaïoánnou | La_mort_pendant_la_vie