From subsecret
Jump to: navigation, search
(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/...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==libcap==
==libcap==
We need libcap so glibc can be build
We need libcap so glibc can be build
  tar xf libcap-2.20.tar.gz
  tar xf libcap-2.22.tar.gz
  cd libcap-2.20
  cd libcap-2.22
  make
  make
   
   
Line 14: Line 14:
==glibc==
==glibc==
Now we can build glibc
Now we can build glibc
  tar xf glibc-2.13.tar.gz
  tar xf glibc-2.17.tar.xz
  mkdir glibc-2.13-build
  mkdir glibc-2.17-build
  cd glibc-2.13-build
  cd glibc-2.17-build
  ../glibc-2.13/configure --prefix=/tools/ --enable-add-ons --enable-kernel=2.6.37 --with-headers=/tools/include
  ../glibc-2.17/configure --prefix=/tools/ --enable-add-ons --enable-kernel=3.8.8 --with-headers=/tools/include --without-selinux
  make -j 12
  make -j 8
  make install
  make install
  cd ..
  cd ..

Latest revision as of 12:07, 21 April 2013

libcap

We need libcap so glibc can be build

tar xf libcap-2.22.tar.gz
cd libcap-2.22
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.17.tar.xz
mkdir glibc-2.17-build
cd glibc-2.17-build
../glibc-2.17/configure --prefix=/tools/ --enable-add-ons --enable-kernel=3.8.8 --with-headers=/tools/include --without-selinux
make -j 8
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"