cross

cross-compilation toolchain using musl libc
git clone git://z3bra.org/cross
Log | Files | Refs | README

commit 3dbb4fecaab376e357dfb8f4a982e14b47ce4916
parent 8a07bf728fe137c7176668d19721004c7106f059
Author: z3bra <willyatmailoodotorg>
Date:   Fri Jan 29 13:31:19 2016

Update version for cross-gcc

Diffstat:
 cross-gcc | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/cross-gcc b/cross-gcc @@ -20,10 +20,10 @@ # cross compiler environment MARCH=$(uname -m) TARGET=${TARGET:-${MARCH}-linux-musl} -PREFIX=${PREFIX:-${HOME}/cross/gcc-${MARCH}} -BLDDIR=${BLDDIR:-${HOME}/cross/build} -SRCDIR=${SRCDIR:-${HOME}/cross/source} -PATCHD=${PATCHD:-${HOME}/cross/patches} +PREFIX=${PREFIX:-/opt/cross} +BLDDIR=${BLDDIR:-${HOME}/dump/work/build} +SRCDIR=${SRCDIR:-${HOME}/dump/work/source} +PATCHD=${PATCHD:-${HOME}/devel/cross/patches} # compilation variables CFLAGS="-Os -fomit-frame-pointer -pipe" @@ -33,13 +33,13 @@ LDFLAGS="-Wl,--as-needed" MAKEFLAGS="-j4" # versions -GCCV=${GCCV:-4.8.5} +GCCV=${GCCV:-5.3.0} BINV=${BINV:-2.25} GMPV=${GMPV:-5.1.3} MPCV=${MPCV:-1.0.3} MPFRV=${MPFRV:-3.1.3} -MUSLV=${MUSLV:-1.1.10} -KERNV=${KERNV:-4.1.4} +MUSLV=${MUSLV:-1.1.12} +KERNV=${KERNV:-4.1.13} # random but useful vars @@ -128,11 +128,11 @@ install_binutils() { mkdir -p "${BLDDIR}/binutils" cd "${BLDDIR}/binutils" ${SRCDIR}/binutils-${BINV}/configure --target=${TARGET} \ - --prefix=${PREFIX} \ - --with-sysroot=${PREFIX}/${TARGET} \ - --disable-nls \ - --disable-shared \ - --disable-multilib + --prefix=${PREFIX} \ + --with-sysroot=${PREFIX}/${TARGET} \ + --disable-nls \ + --disable-shared \ + --disable-multilib make configure-host make LDFLAGS="${LDFLAGS} -all-static -static" make install @@ -174,6 +174,7 @@ ${SRCDIR}/gcc-${GCCV}/configure --target=${TARGET} \ --disable-shared \ --disable-multilib \ --disable-libmudflap \ + --enable-threads=posix \ --enable-languages=c make LDFLAGS="${LDFLAGS} -static" all-gcc all-target-libgcc make install-gcc install-target-libgcc @@ -198,7 +199,7 @@ EOF chmod 755 "${PREFIX}/bin/${TARGET}-pkg-config" } -grab_sources +#grab_sources extract_source patch_sources prepare_gcc