-FAKE_ROOT=$PWD/fake-root
-
-rm -rf $FAKE_ROOT && install -d $FAKE_ROOT%{_includedir}
-cp -r linux-libc-headers-%{_llh_ver}/include/{asm-ppc64,linux} $FAKE_ROOT%{_includedir}
-ln -s asm-ppc64 $FAKE_ROOT%{_includedir}/asm
-
-cd glibc-%{_glibc_ver}
-cp -f /usr/share/automake/config.* scripts
-rm -rf builddir && install -d builddir && cd builddir
-../configure \
---prefix=$FAKE_ROOT%{_prefix} \
- --build=%{_target_platform} \
- --host=%{target} \
- --disable-nls \
- --enable-add-ons=linuxthreads \
- --with-headers=$FAKE_ROOT%{_includedir} \
- --disable-sanity-checks \
- --enable-hacker-mode
-
-%{__make} sysdeps/gnu/errlist.c
-%{__make} install-headers
-
-install bits/stdio_lim.h $FAKE_ROOT%{_includedir}/bits
-touch $FAKE_ROOT%{_includedir}/gnu/stubs.h
-cd ../..
-