The offending line in config/gen/makefiles/dynclasses_pl.in is probably this one:
$LD $CFLAGS $LDFLAGS $LD_LOAD_FLAGS $LIBPARROT
That CFLAGS doesn't belong there. CFLAGS are intended to be sent to $CC, not to $LD. The command being called here is $LD, which is defined in config/init/data.pl as the "Tool used to build shared libraries and dynamically loadable modules."
I can't find anything that fails if this is removed, so I committed the change.
- Sam Ruby