Bug#484810: Configure failure when all code is position independent

2008-07-12 Thread Marko Lindqvist
2008/6/6 Mark Brown <[EMAIL PROTECTED]>: > 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 >> + t

Bug#484810: Configure failure when all code is position independent

2008-06-06 Thread Mark Brown
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 pa

Bug#484810: Configure failure when all code is position independent

2008-06-06 Thread Marko Lindqvist
Package: zlib1g Version: 1:1.2.3.3.dfsg-12 zlib1g configure checks assume that compile fails if compiler outputs anything, assuming it is always error message. (This is ugly, and one may want to fix it properly.) Compiler always gets "-fPIC", and when compiling for certain platforms (I encounte