#!/bin/bash # The static binary version of chroot must be build on the linux machine # which runs the same kernel as your CrashRecoveryKit version and # has the same version of libc and binutils. # # chroot_OBJECTS = chroot.$(OBJEXT) # chroot_DEPENDENCIES = $(am__DEPENDENCIES_2) # am__DEPENDENCIES_1 = # am__DEPENDENCIES_2 = libver.a ../lib/libcoreutils.a \ # $(am__DEPENDENCIES_1) ../lib/libcoreutils.a cd /usr/src/RPM/BUILD/coreutils-8.12/ ./configure LDFLAGS=-Bstatic LDFLAGS=-Bstatic make cd src gcc -static -I../lib -o chroot chroot.c libver.a ../lib/libcoreutils.a exit 0