[Lunar-commits] r26441 - moonbase/branches/crater/libs/glibc-new
Florin Braescu
florin at lunar-linux.org
Sat Oct 27 22:22:53 CEST 2007
Author: florin
Date: 2007-10-27 22:22:53 +0200 (Sat, 27 Oct 2007)
New Revision: 26441
Modified:
moonbase/branches/crater/libs/glibc-new/BUILD
Log:
some tweaks to make it compile even on my system ;)
Modified: moonbase/branches/crater/libs/glibc-new/BUILD
===================================================================
--- moonbase/branches/crater/libs/glibc-new/BUILD 2007-10-27 13:52:11 UTC (rev 26440)
+++ moonbase/branches/crater/libs/glibc-new/BUILD 2007-10-27 20:22:53 UTC (rev 26441)
@@ -7,33 +7,38 @@
sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
fi
- export CC=gcc
+ # Don't allow too much damage
+ unset CFLAGS CXXFLAGS CPPFLAGS LD_LIBRARY_PATH
+ # glibc wants -march=i486 greater or less is NOT compiling.
+ export CC="gcc -march=i486"
+ export CXX="g++ -march=i486"
+
# Don't fully strip libc
if [[ "$LDFLAGS" == *-s* ]] ; then
STRIP=y
fi
unset LDFLAGS
- INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
- mkdir -p $INSTALL_ROOT &&
+ INSTALL_ROOT=$SOURCE_DIRECTORY/glibcroot &&
+ mkdir -p $INSTALL_ROOT &&
cd $INSTALL_ROOT
# We want the newest available headers
OPTS="$OPTS --with-headers=/usr/src/linux/include"
- ../configure --prefix=/usr \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man \
- --with-elf \
- --with-gd=no \
- --without-cvs \
- --enable-shared \
- --with-kernel=2.6.20.0 \
- $OPTS &&
+ ../configure --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --with-elf \
+ --with-gd=no \
+ --without-cvs \
+ --enable-shared \
+ --with-kernel=2.6.20.0 \
+ $OPTS &&
# explicitly exit here since the following code unsets $?
- make || exit 1 &&
+ make || exit 1 &&
# Preserve the old glibc temporarily
LD=/lib/ld-linux.so.2
@@ -86,13 +91,13 @@
sln /lib/libcrypt-lunar.so $CRYPT &&
# clean hack to make sure gnu/stubs.h gets refreshed
- rm -f /usr/include/gnu/stubs.h &&
+ rm -f /usr/include/gnu/stubs.h &&
# This removes the old glibc
- prepare_install &&
+ prepare_install &&
# And now we install the new
- make install &&
+ make install &&
# Now optionally perform debug symbol stripping only
if [ "$STRIP" == "y" ] ; then
@@ -121,7 +126,7 @@
if [ -z "$GLIBC_LOCALES" ]; then
make localedata/install-locales || exit 1
else
- devoke_installwatch &&
+ devoke_installwatch &&
for LOCALE in $GLIBC_LOCALES; do
INPUTFILE=$(echo $LOCALE | cut -d/ -f1 | sed -e 's:\..*$::g')
OUTPUTFILE=$(echo $LOCALE | cut -d/ -f1)
@@ -130,7 +135,7 @@
echo "localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE"
localedef -i $INPUTFILE -f $CHARMAP $OUTPUTFILE
done
- invoke_installwatch &&
+ invoke_installwatch &&
touch /usr/lib/locale/locale-archive
fi
More information about the Lunar-commits
mailing list