|
|
@ -142,8 +142,10 @@ glibc_custmain() { |
|
|
|
# NPTL doesn't work with plain i386 CPUs |
|
|
|
if [ $pkg_glibc_linuxthreads = 1 ]; then |
|
|
|
temp_arch_target="$arch_target" |
|
|
|
temp_arch_build="$arch_build" |
|
|
|
else |
|
|
|
temp_arch_target="${arch_target/i386/i486}" |
|
|
|
temp_arch_build="${arch_build/i386/i486}" |
|
|
|
fi |
|
|
|
|
|
|
|
# Disable glibc internal debuging but build debuging and profile |
|
|
@ -153,7 +155,8 @@ glibc_custmain() { |
|
|
|
--with-gnu-binutils --enable-add-ons"$ADDONS" $G_PROFILE \ |
|
|
|
--with-headers=$root/$prefix/include --with-gd=/$prefix \ |
|
|
|
--with-gd-lib=/$prefix/lib --with-gd-include=/$prefix/include \ |
|
|
|
--cache-file=config.cache --build=${arch_build} --host=${temp_arch_target} |
|
|
|
--cache-file=config.cache \ |
|
|
|
--build=${temp_arch_build} --host=${temp_arch_target} |
|
|
|
|
|
|
|
eval $MAKE prefix=/usr slibdir=/lib sysconfdir=/etc all |
|
|
|
if [ -z "$pkg_glibc_cross" ] |
|
|
@ -165,21 +168,33 @@ glibc_custmain() { |
|
|
|
fi |
|
|
|
ln -sf libbsd-compat.a $root/$prefix/lib/libbsd.a |
|
|
|
|
|
|
|
# install locales |
|
|
|
# |
|
|
|
eval $MAKE localedata/install-locales |
|
|
|
cp ../localedata/SUPPORTED $root/usr/share/i18n/ |
|
|
|
|
|
|
|
# copy crypt documentation |
|
|
|
# |
|
|
|
cp ../crypt/README.ufc-crypt $docdir/README.crypt |
|
|
|
|
|
|
|
# NSCD Init script and config |
|
|
|
# |
|
|
|
cp $confdir/nscd.conf $confdir/nsswitch.conf $root/etc/ |
|
|
|
install_init nscd $confdir/nscd.init |
|
|
|
|
|
|
|
# Misc. stuff |
|
|
|
# |
|
|
|
if [ $stagelevel -gt 1 -a -z "$pkg_glibc_cross" ] |
|
|
|
then |
|
|
|
# install locales and linuxthread manpages |
|
|
|
# install linuxthread manpages |
|
|
|
# |
|
|
|
eval $MAKE localedata/install-locales |
|
|
|
cp ../localedata/SUPPORTED $root/usr/share/i18n/ |
|
|
|
mkdir -p $root/usr/share/man/man3 |
|
|
|
if [ -f /usr/bin/perl -a $pkg_glibc_linuxthreads = 1 ] ; then |
|
|
|
eval $MAKE -C ../linuxthreads/man \ |
|
|
|
MANDIR=$root/usr/share/man/man3 all install |
|
|
|
fi |
|
|
|
|
|
|
|
# copy linuxthreads and crypt documentation |
|
|
|
# copy linuxthreads documentation |
|
|
|
# |
|
|
|
if [ $pkg_glibc_linuxthreads = 1 ]; then |
|
|
|
cp ../linuxthreads/ChangeLog $docdir/ChangeLog.threads |
|
|
@ -188,12 +203,6 @@ glibc_custmain() { |
|
|
|
cp ../linuxthreads/FAQ.html $docdir/FAQ-threads.html |
|
|
|
cp -r ../linuxthreads/Examples $docdir/examples.threads |
|
|
|
fi |
|
|
|
cp ../crypt/README.ufc-crypt $docdir/README.crypt |
|
|
|
|
|
|
|
# NSCD Init script and config |
|
|
|
# |
|
|
|
cp $confdir/nscd.conf $confdir/nsswitch.conf $root/etc/ |
|
|
|
install_init nscd $confdir/nscd.init |
|
|
|
fi |
|
|
|
|
|
|
|
# No wrong absolute path in *.so linker scripts |
|
|
|