Global Information Lookup Global Information

CFLAGS information


CFLAGS and CXXFLAGS are either the name of environment variables or of Makefile variables that can be set to specify additional switches to be passed to a compiler in the process of building computer software. FFLAGS fulfills a similar role.[1]

These variables are usually set inside a Makefile and are then appended to the command line when the compiler is invoked. If they are not specified in the Makefile, then they will be read from the environment, if present. Tools like autoconf's ./configure script will usually pick them up from the environment and write them into the generated Makefiles. Some package install scripts, like SDL, allow CFLAGS settings to override their normal settings (instead of append to them), so setting CFLAGS can cause harm in this case.

CFLAGS enables the addition of switches for the C compiler, while CXXFLAGS is meant to be used when invoking a C++ compiler. Similarly, a variable CPPFLAGS exists with switches to be passed to the C or C++ preprocessor. Similarly, FFLAGS enables the addition of switches for a Fortran compiler.

These variables are most commonly used to specify optimization or debugging switches to a compiler, as for example -g, -O2 or (GCC-specific) -march=athlon.

  1. ^ Stallman, McGrath & Smith 2020, sec.10.3.

and 10 Related for: CFLAGS information

Request time (Page generated in 0.5514 seconds.)

CFLAGS

Last Update:

SDL, allow CFLAGS settings to override their normal settings (instead of append to them), so setting CFLAGS can cause harm in this case. CFLAGS enables the...

Word Count : 253

GNU Bison

Last Update:

FILES = Lexer.c Parser.c Expression.c main.c CC = g++ CFLAGS = -g -ansi test: $(FILES) $(CC) $(CFLAGS) $(FILES) -o test Lexer.c: Lexer.l flex Lexer.l Parser...

Word Count : 2306

Source Mage

Last Update:

can be compiled without support for X11 sharing. One can choose to set cflags, cxxflags, and ldflags specific to their situation. Using a source-based...

Word Count : 808

Agrep

Last Update:

home page For Unix (To compile under OSX 10.8, add -Wno-return-type to the CFLAGs = -O line in the Makefile) See also TRE regexp matching package cgrep a...

Word Count : 316

Gentoo Linux

Last Update:

Archived from the original on March 26, 2023. Retrieved April 20, 2020. CFLAGS and CXXFLAGS Archived February 12, 2018, at the Wayback Machine, Gentoo...

Word Count : 4590

GNU Scientific Library

Last Update:

to be linked to the GSL library upon compilation: $ gcc $(gsl-config --cflags) example.c $(gsl-config --libs) The output is shown below and should be...

Word Count : 871

Makedepend

Last Update:

be as follows: SRCS = file1.c file2.c ... CFLAGS = -O -DHACK -I../foobar -xyz depend: makedepend -- $(CFLAGS) -- $(SRCS) When building C language projects...

Word Count : 521

Gtkmm

Last Update:

following commands: $ g++ -std=c++11 *.cc -o example `pkg-config gtkmm-3.0 --cflags --libs` $ ./example This is usually done using a simple makefile. Some notable...

Word Count : 691

WD16

Last Update:

0A00 ROR Rotate right: Dest:Cflag ← Rotate-right(Dest:Cflag, 1) 8A00 RORB 0A40 ROL Rotate left: Cflag:Dest ← Rotate-left(Cflag:Dest, 1) 8A40 ROLB 0B80 ASR...

Word Count : 2900

POSIX terminal interface

Last Update:

c_iflag ; // Input modes tcflag_t c_oflag ; // Output modes tcflag_t c_cflag ; // Control modes tcflag_t c_lflag ; // Local modes cc_t c_cc[NCCS] ; //...

Word Count : 4442

PDF Search Engine © AllGlobal.net