This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: configure CFLAGS="-V 1.2.3" vs. -o


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]