CXXFLAGS

From VrlWiki
Revision as of 16:48, 19 November 2010 by Brad Berg (talk | contribs) (New page: CXXFLAGS += <C++ Compiler flags> ... Set '''CXXFLAGS''' when you want to explicitly set C++ compiler options. Use the <code>"+="</code> assignment unless you explicitly intend to...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
CXXFLAGS += <C++ Compiler flags>  ...

Set CXXFLAGS when you want to explicitly set C++ compiler options. Use the "+=" assignment unless you explicitly intend to clear prior settings. This setting is for advanced users that understand command line options for the compiler on the platforms they work with.


Examples:

CXXFLAGS += -L$(G_IMPORT)/sdl/sdl_1.2.13_gcc3/lib   -lSDL              # Linux
CXXFLAGS += -LIBPATH:"$(G_IMPORT)/sdl/sdl_1.2.13_gcc3/lib"  SDL.lib    # Windows