Cross compile on minix support

* Remade patch so it works with minix patch tool.

 * New MINIX tar support -ox, so revert back to it

   In fetch scripts, tar had been replaced by bsdtar as the prebvious
   tar did not support the -o flag under minix, which is required to
   prevent usage of tar file stored user and group information.

   This introduces portability problems. As our new tar tool now
   support that flag revert back to improve portability.
This commit is contained in:
Lionel Sambuc
2012-11-01 22:55:12 +01:00
committed by Lionel Sambuc
parent 6227378147
commit b8a678ef1d
32 changed files with 21644 additions and 31161 deletions

View File

@@ -23,7 +23,7 @@ then
fi
fi
bsdtar -oxjf binutils-2.21.1.tar.bz2 && \
tar -oxjf binutils-2.21.1.tar.bz2 && \
mv binutils-2.21.1 dist && \
cd dist && \
cat ../patches/* | patch -p1

View File

@@ -0,0 +1,11 @@
diff -rNU3 dist/binutils/dwarf.c dist.new/binutils/dwarf.c
--- dist/binutils/dwarf.c Wed Nov 7 17:24:51 2012
+++ dist.new/binutils/dwarf.c Wed Nov 7 15:50:59 2012
@@ -28,6 +28,7 @@
#include "elf/common.h"
#include "dwarf2.h"
#include "dwarf.h"
+#include "getopt.h"
static const char *regname (unsigned int regno, int row);

View File

@@ -32,7 +32,7 @@ then
fi
fi
bsdtar -oxjf gcc-4.5.3.tar.bz2 && \
tar -oxjf gcc-4.5.3.tar.bz2 && \
mv gcc-4.5.3 dist && \
cd dist && \
rm -rf $DELETEDIRS && \

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,12 @@
diff -rNU3 gcc-4.5.3/configure dist/configure
--- gcc-4.5.3/configure Wed Nov 7 20:12:53 2012
+++ dist/configure Wed Nov 7 19:25:20 2012
@@ -5321,7 +5321,7 @@
# Check for GMP, MPFR and MPC
-gmplibs="-lmpc -lmpfr -lgmp"
+gmplibs="-lmpc -lmpfr -lgmp -lm"
gmpinc=
have_gmp=no

View File

@@ -23,7 +23,7 @@ then
fi
fi
bsdtar -oxzf mpc-0.9.tar.gz
tar -oxzf mpc-0.9.tar.gz
mv mpc-0.9 dist
fi

View File

@@ -23,7 +23,7 @@ then
fi
fi
bsdtar -oxjf gmp-5.0.2.tar.bz2
tar -oxjf gmp-5.0.2.tar.bz2
mv gmp-5.0.2 dist && \
cd dist && \
cat ../patches/* |patch -p1

View File

@@ -23,7 +23,7 @@ then
fi
fi
bsdtar -oxjf mpfr-3.0.1.tar.bz2
tar -oxjf mpfr-3.0.1.tar.bz2
mv mpfr-3.0.1 dist && \
cd dist && \
cat ../patches/* |patch -p1