10-13-2012 04:48 PM - edited 10-13-2012 09:07 PM
The documented solution is to use -Wl to pass the param to the compiler, but this doesn't help much when trying to compile a library that uses autotools.
Adding -Wc,-std=c99 to CFLAGS causes configure's c99 tests to pass, which causes the Makefile to pass -std=c99 to qcc, which chokes.
Is there a clean way to fix this? I wish to avoid having to manually modify the configure file or the Makefile every time I want to build an open-source library.
Any chance the next version of qcc could understand -std?
Are there any reasons why it shouldn't? Is qcc open-source and does it accept patches?
04-26-2013 02:40 PM
A little late, but I was looking for the answer to this too. I found it here:
QMAKE_CFLAGS += -Wc,-std=c99
to your .pro file.
Probably too late to help you, but others may see this.