Can't modify /build/bft/bfd/.libs/libbfd-2.17.so's text section. Use GCC option -fPIC for shared objects, please.

naruto canada narutocanada at gmail.com
Sat Nov 17 00:01:32 PST 2007


hi

.....
....
Can't modify /build/bft/bfd/.libs/libbfd-2.17.so's text section. Use
GCC option -fPIC for shared objects, please.
....
...

I went ahead and modified the Makefile in bfd directory, but
libbfd-2.17.so still has TEXTREL.

cd bfd
mv .libs/* /tmp
mv *.o *.lo /tmp
sed -i.orig "s/^CFLAGS =.*/CFLAGS=-g -O2 -fno-PIE -fPIC/" Makefile
sed -i.orig "s/^LDFLAGS =.*/LDFLAGS=-fpic -fPIC/" Makefile
diff Makefile.orig Makefile
make tooldir=/usr
readelf -ld .libs/libbfd-2.17.so | grep -E 'Shared object|TEXTREL'

I'm about to give up for good.



More information about the hlfs-dev mailing list