On Fri, Jun 06, 2008 at 06:53:31PM +0300, Marko Lindqvist wrote: > - SFLAGS="${CFLAGS-"-O3"} -fPIC" > + SFLAGS="${CFLAGS-"-O3"}" > + > + if ! $CC -c $CFLAGS -fPIC $test.c 2>&1 | > + grep "all code is position independent" >/dev/null > + then > + SFLAGS="$SFLAGS -fPIC" > + fi
This patch is too specific to current toolchains and a specific locale at the minute - it'll be too fragile going forward. If you can come up with a test for this that checks for the feature more directly that would be much better. To be honest this seems like a bug in the toolchain for your platform - the warning is going to be generated very often and if it is not readily possible to identify platforms where -fPIC doesn't make any difference to generated code then it's not terribly helpful. -- "You grabbed my hand and we fell into it, like a daydream - or a fever." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]