------- Comment #6 from skunk at iskunk dot org 2006-08-02 16:30 ------- Interestingly enough, the test-cc script teased out an apparent bug in config/depstand.m4 (routines to check the compiler's mode of dependency generation). When the compiler is invoked, at the $SHELL line in the below excerpt...
----(begin config/depstand.m4 excerpt)---- depcmd="depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" echo "| $depcmd" | sed -e 's/ */ /g' >&AS_MESSAGE_LOG_FD if env $depcmd > conftest.err 2>&1 && ----(end config/depstand.m4 excerpt)---- ...no compiler flags are passed to it. You'll have to work around this in order to make use of the wrapper script, but would this be worth a new bug report? You could imagine a case where the compiler does something stupid here (strict K&R mode?) if it doesn't get a certain flag. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28515