Anpassungen der patches und buildoptionen (fehlerkorrekturen...wer abschreiben kann

ist klar im vorteil..:)) ). Static build scheint jetzt fuer 64 Bit zu funktionieren



git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@4484 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2008-05-09 12:26:01 +00:00
parent 4ab26b4dbb
commit 20cd5ec80d
4 changed files with 8 additions and 8 deletions

View File

@ -93,7 +93,7 @@ mk() {
../binutils*/configure --host=$HOSTSYS \
--target=$TARGET \
--prefix=/cross-tools \
--with-lib-path=/tools/$LIBDIR \
--with-lib-path=/tools/lib \
--disable-nls \
--enable-shared \
--enable-64-bit-bfd

View File

@ -85,7 +85,7 @@ premk() {
if [ -f /tmp/crossgcc_stage1 ]; then
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-PR31490-1.patch*
fi
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-pure64_specs-1.patch*
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-specs-1.patch*
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-posix-1.patch*
SrcPatch $MAKEDIR/gcc* $LFSSOURCE/$SRCPATH/gcc-*-cross_search_paths-1.patch*
if [ "$ARCH" == "sparc64" ]; then
@ -96,14 +96,14 @@ premk() {
for i in $OUTFILE; do
echo "
#undef STARTFILE_PREFIX_SPEC
#define STARTFILE_PREFIX_SPEC \"/tools/$LIBDIR/\"" >>$i
#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >>$i
done
cp -v gcc/Makefile.in{,.orig}
sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \
gcc/Makefile.in.orig > gcc/Makefile.in
if [ -f /tmp/crossgcc_stage1 ]; then
cp -v configure{,.orig}
sed -e '/FLAGS_FOR_TARGET.*\/'$LIBDIR'\//s@-B[^ ]*/'$LIBDIR'/@@g' configure.orig >configure
sed -e '/FLAGS_FOR_TARGET.*\/lib\//s@-B[^ ]*/'$LIBDIR'/@@g' configure.orig >configure
fi
mkdir ../build-gcc
cd ../build-gcc

View File

@ -90,6 +90,7 @@ mk32() {
CC="${TARGET}-gcc ${BUILDOPTIONS32}" \
AR="${TARGET}-ar" \
RANLIB="${TARGET}-ranlib" \
CFLAGS="-march=$ARCH32 -mtune=generic -g -O2" \
../glibc*/configure --prefix=/tools \
--host=$TARGET32 \
--build=$TARGET \
@ -101,7 +102,6 @@ mk32() {
--with-binutils=/cross-tools/bin \
--with-headers=/tools/include \
--cache-file=config.cache
echo "CFLAGS += -march=$ARCH32" >configparms
make -j $NUMCPU
make -j $NUMCPU install
cd ../glibc*
@ -139,7 +139,7 @@ mk() {
--with-headers=/tools/include \
--cache-file=config.cache
if [ ! ${MK64BIT} == "true" ]; then
echo "CFLAGS += -march=$ARCH" >configparms
echo "CFLAGS += -march=$ARCH -mtune=generic -g -O2" >configparms
fi
make -j $NUMCPU
make -j $NUMCPU install

View File

@ -87,8 +87,8 @@ SRCPATH=Base/Utilities
premk() {
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-posix*.patch*
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-branch_update-3*
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-genscripts*.patch*
SrcPatch $MAKEDIR/binutils* $LFSSOURCE/$SRCPATH/binutils-*-branch_update-3*
if [ ${MK64BIT} == "true" ]; then
BUILDOPTIONS="-m64"
@ -109,7 +109,7 @@ mk() {
--build=$HOSTSYS \
--prefix=/tools \
--libdir=/tools/$LIBDIR
--with-lib-path=/tools/$LIBDIR \
--with-lib-path=/tools/lib \
--disable-nls \
--enable-shared \
--enable-64-bit-bfd