[gs-devel] gcc compile flags
torsten at debian.org
Sat Mar 30 06:18:14 PST 2002
On Fri, Mar 29, 2002 at 02:41:39PM -0800, rillian wrote:
> '-Wcast-qual -Wwrite-string' through the same mechanism. Do these
> somehow fail on that version of gcc? Given that we now check each CFLAG
> to see if the compiler supports it, is it reasonable to just add them to
> the default set?
Perhaps this snippet from the autoconf documentation is helpful:
- Macro: AC_PROG_CC ([COMPILER-SEARCH-LIST])
Determine a C compiler to use. If `CC' is not already set in the
environment, check for `gcc' and `cc', then for other C compilers.
Set output variable `CC' to the name of the compiler found.
If using the GNU C compiler, set shell variable `GCC' to `yes'.
Thus configure.ac could add the gcc specific options to CFLAGS if GCC is
set in this way.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 232 bytes
Desc: not available
Url : http://ghostscript.com/pipermail/gs-devel/attachments/20020330/cc926e69/attachment.pgp
More information about the gs-devel