This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: configure CFLAGS="-V 1.2.3" vs. -o
- From: Andreas Schwab <schwab at suse dot de>
- To: Jay <jay dot krell at cornell dot edu>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Wed, 27 Aug 2008 11:17:12 +0200
- Subject: Re: configure CFLAGS="-V 1.2.3" vs. -o
- References: <COL101-W6560D590F94A8D2CF24F64E6610@phx.gbl>
Jay <jay.krell@cornell.edu> writes:
> configure CFLAGS='-V 3.4.4' doesn't work because:
>
>
> configure:3291: i686-pc-cygwin-gcc -o conftest.exe -V 3.4.4 -mno-cygwin -g co
> nftest.c >&5
> i686-pc-cygwin-gcc: '-V' must come at the start of the command line
> configure:3294: $? = 1
> configure:3312: error: cannot compute suffix of executables: cannot compile and
> link
>
>
> Maybe an autoconf bug.
No. CFLAGS is expected to be able to appear anywhere on the compiler
command line (among the other flags). You can't include
position-dependent flags.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."