I can confirm this bug when compiling coreutils-8.5 on a fresh lucid 10.04.1 amd64.
$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./configure --prefix=/home/someusername/lfs LDFLAGS="-static"
...
make
...
CC libstdbuf_so-libstdbuf.o
CCLD libstdbuf.so
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbeginT.o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbeginT.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libstdbuf.so] Error 1
...
I can confirm this bug when compiling coreutils-8.5 on a fresh lucid 10.04.1 amd64.
$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./configure --prefix= /home/someusern ame/lfs LDFLAGS="-static" so-libstdbuf. o gcc/x86_ 64-linux- gnu/4.4. 3/crtbeginT. o: relocation R_X86_64_32 against `__DTOR_END__' can not be used when making a shared object; recompile with -fPIC gcc/x86_ 64-linux- gnu/4.4. 3/crtbeginT. o: could not read symbols: Bad value
...
make
...
CC libstdbuf_
CCLD libstdbuf.so
/usr/bin/ld: /usr/lib/
/usr/lib/
collect2: ld returned 1 exit status
make[3]: *** [libstdbuf.so] Error 1
...