On Fri, May 23, 2008 at 01:13:56PM +0200, Roland Mainz wrote: > IMO it may be nice to set: > -- snip -- > -xc99=%all -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 -xstrconst -xspace > -- snip -- > ... as default CFLAGS/CXXFLAGS - "-xc99=%all -D_XOPEN_SOURCE=600 > -D__EXTENSIONS__=1" enables C99/XPG6 conformance mode, "-xstrconst" > folds duplicate constant strings into one (saves runtime memory, like > gcc), "-xspace" tries to save space in code.
As I pointed out the last time I saw you suggest this, it is not correct. The right way to set these flags, if in fact they are appropriate for the source in question, is: C99MODE = $(C99_ENABLE) CFLAGS += $(XSTRCONST) CPPFLAGS += $(XPG6MODE) You can also use these macros when invoking make or other scripts elsewhere. The macros should always be used instead of the raw Studio- and version-specific flags. Please don't make more work for others; use the macros. -- Keith M Wesolowski "Sir, we're surrounded!" Fishworks "Excellent; we can attack in any direction!"
