From 38f6aa7f5401d8322daa0b978df10d5fda2a613e Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 27 Dec 2020 20:26:32 +0300 Subject: experimental: add initial cross-compilation support --- core/binutils/build | 15 +++++---------- core/busybox/build | 6 ++++-- core/byacc/build | 3 +-- core/bzip2/build | 8 +++++--- core/carbs-init/build | 4 +++- core/curl/build | 3 +-- core/flex/build | 4 +--- core/gzip/build | 2 ++ core/libelf/build | 3 +-- core/m4/build | 3 +-- core/musl/build | 4 +--- core/zlib/build | 3 +++ 12 files changed, 28 insertions(+), 30 deletions(-) diff --git a/core/binutils/build b/core/binutils/build index 67a1af16..61c53318 100755 --- a/core/binutils/build +++ b/core/binutils/build @@ -1,12 +1,8 @@ #!/bin/sh -e # Architecture specific build options -case ${3:-$(uname -m)} in - i*86) archopts="--build=i686-pc-linux-musl \ - --host=i686-pc-linux-musl \ - --enable-64-bit-bfd" ;; - x86_64) archopts="--build=x86_64-pc-linux-musl \ - --host=x86_64-pc-linux-musl" +case "$3" in + i?86) archopts="--enable-64-bit-bfd" esac cat > makeinfo <