Anpassung an V962. Uebernahme der Compile Optionen aus Linuxfromscratch

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@4486 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2008-05-13 08:50:20 +00:00
parent 75f46f82f2
commit 99023a484a

View File

@ -74,21 +74,17 @@ SRCPATH=Base/lib
(( MKPKG = $MKPKG | 128 )) (( MKPKG = $MKPKG | 128 ))
premk() { premk() {
ARCH=`echo $TARGET|cut -d"-" -f 1` SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-branch_update-1A*
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-localedef_segfault* SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-localedef_segfault*
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-branch_update-2*
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-blowfish*
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-dl_execstack_PaX*
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-iconv_unnest-1*
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-pt_pax-1*
SrcPatch $MAKEDIR/glibc* $LFSSOURCE/$SRCPATH/glibc-*-strlcpy_strlcat-1*
mkdir ../build-glibc mkdir ../build-glibc
cd ../build-glibc cd ../build-glibc
} }
mk32() { mk32() {
ARCH=`echo $TARGET32|cut -d"-" -f 1`
CC="gcc -m32" \ CC="gcc -m32" \
CXX="g++ -m32" \ CXX="g++ -m32" \
CFLAGS="-march=$ARCH -mtune=generic -O2" \
../glibc*/configure --prefix=/usr \ ../glibc*/configure --prefix=/usr \
--host=${TARGET32} \ --host=${TARGET32} \
--disable-profile \ --disable-profile \
@ -96,6 +92,7 @@ mk32() {
--enable-kernel=2.6.0 \ --enable-kernel=2.6.0 \
--libexecdir=/usr/lib/glibc --libexecdir=/usr/lib/glibc
make -j $NUMCPU make -j $NUMCPU
touch /etc/ld.so.conf
make -j $NUMCPU install_root=$TMPROOT install make -j $NUMCPU install_root=$TMPROOT install
cd ../glibc* cd ../glibc*
rm -r ../build-glibc/ rm -r ../build-glibc/
@ -104,6 +101,7 @@ mk32() {
} }
mk() { mk() {
ARCH=`echo $TARGET|cut -d"-" -f 1`
if [ $MK64BIT == "true" ]; then if [ $MK64BIT == "true" ]; then
echo "slibdir=/lib64" >> configparms echo "slibdir=/lib64" >> configparms
ADDCONFIGURE="--libdir=/usr/lib64 --libexecdir=/usr/lib64/glibc" ADDCONFIGURE="--libdir=/usr/lib64 --libexecdir=/usr/lib64/glibc"
@ -129,6 +127,4 @@ mk() {
postmk() { postmk() {
cd ../glibc* cd ../glibc*
rm -r ../build-glibc rm -r ../build-glibc
tar -C /tools/share/zoneinfo -cf - .|\
tar -C $TMPROOT/usr/share/zoneinfo -xf -
} }