Getting more shared libraries out of HLFS

Robert Connolly robert at
Sun Dec 3 23:30:07 PST 2006

# Binutils shared libiberty:

sed -e 's/libiberty.a/' \
	-i {ld,gas,binutils,gprof,opcodes}/

./configure... --with-pic

make tooldir=/usr all-libiberty &&
mkdir libiberty/pic/dynamic &&
cd libiberty/pic/dynamic &&
ar x ../libiberty.a &&
gcc -shared -o -Wl,-soname, *.o &&
cp ../ &&
cd ../../../ &&
ln -vs pic/ libiberty/


env LD_PRELOAD=$(pwd)/libiberty/ make check

env LD_PRELOAD=$(pwd)/libiberty/ make tooldir=/usr install &&
rm -v /usr/lib/libiberty.a &&
install -v libiberty/ /usr/lib/ &&
ln -vs /usr/lib/

# I'm still checking how well this turns out, but it seems to work.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the hlfs-dev mailing list