configure fails with CFLAGS set
Advanced PNG optimization program
Status: Beta
Brought to you by:
cosmin
Dear all,
After successfully compiling and installing a whole bunch of software (libpng, pngquant etc.) using the same magic recipe
./configure CFLAGS="-O3"
I failed to do the same thing on OptiPNG 0.7.5 under Linux Mint Debian x64. The error is:
./configure: error: unknown option: CFLAGS=-O3
Changing the double quotemarks to single ones yields nothing. So just ./configure and ./configure -with-system-libs work fine. The --help option says that CFLAGS can be used, but in this case, apparently it cannot. Escaping the quotemarks like \" in order to preserve them does not help.
The omission of quotes in the error report seems suspicious. Does it mean that this variable has to be declared come other way?
Addition:
CFLAGS="-O3" && ./configure -with-system-libswon’t work in the sense that it does not produce an error, but the compiler still runs with -O2.
Last edit: Andreï Victorovitch Kostyrka 2015-02-27