From subsecret
Revision as of 13:20, 21 April 2013 by Steffen Mikkelsen (talk | contribs) (Created page with "==libcap== We need libcap so glibc can be build tar xf libcap-2.20.tar.gz cd libcap-2.20 make Since "make install" is broken, we manually copy needed files cp -R libcap/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

libcap

We need libcap so glibc can be build

tar xf libcap-2.20.tar.gz
cd libcap-2.20
make

Since "make install" is broken, we manually copy needed files

cp -R libcap/include/ /tools
cp libcap/libcap*.so* /tools/lib
cp libcap/include/sys/capability.h /tools/include/sys/
cd ..

glibc

Now we can build glibc

tar xf glibc-2.13.tar.gz
mkdir glibc-2.13-build
cd glibc-2.13-build
../glibc-2.13/configure --prefix=/tools/ --enable-add-ons --enable-kernel=2.6.37 --with-headers=/tools/include
make -j 12
make install
cd ..

glibc contains "ldd" which needs to be fixed to use right path. Edit /tools/bin/ldd and replace RTLDLIST=XXXXX with RTLDLIST="/tools/lib/ld-linux.so.2 /tools/lib/ld-linux-x86-64.so.2"