default to host gcc's machine for CBUILD

This commit is contained in:
Timo Teräs 2016-07-22 13:10:40 +03:00
parent 8946d01ed7
commit 42738f43d4
2 changed files with 2 additions and 9 deletions

View File

@ -1,11 +1,3 @@
CHOST=i486-alpine-linux-musl
# for x86_64 we want:
# CHOST=x86_64-alpine-linux-musl
# for powerpc we want:
# CHOST=powerpc-alpine-linux-musl
export CFLAGS="-Os -fomit-frame-pointer"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"

View File

@ -86,7 +86,8 @@ readconfig() {
PACKAGER=${_PACKAGER-$PACKAGER}
USE_COLORS=${_USE_COLORS-$USE_COLORS}
[ -z "$CBUILD" ] && CBUILD="$CHOST"
[ -z "$CBUILD" ] && CBUILD="$(gcc -dumpmachine)"
[ -z "$CHOST" ] && CHOST="$CBUILD"
[ -z "$CTARGET" ] && CTARGET="$CHOST"
[ -z "$CARCH" ] && CARCH="$(hostspec_to_arch $CHOST)"
[ -z "$CLIBC" ] && CLIBC="$(hostspec_to_libc $CHOST)"