diff options
-rwxr-xr-x | builder/build-package | 9 | ||||
-rwxr-xr-x | builder/build-query | 5 |
2 files changed, 4 insertions, 10 deletions
diff --git a/builder/build-package b/builder/build-package index d5f0808..b98b3e9 100755 --- a/builder/build-package +++ b/builder/build-package @@ -29,15 +29,6 @@ pkg_prep() pkg_compile() { - CC="${CHOST}-gcc" - CXX="${CHOST}-g++" - AS="${CHOST}-as" - LD="${CHOST}-ld" - STRIP="${CHOST}-strip" - RANLIB="${CHOST}-ranlib" - LIBTOOL="${CHOST}-libtool" - export CC CXX AS LD STRIP RANLIB LIBTOOL - # FIXME these defaults need moved elsewhere if [ -f "configure" ]; then ./configure --host="${CHOST}" \ diff --git a/builder/build-query b/builder/build-query index f7a59c3..c0bde3a 100755 --- a/builder/build-query +++ b/builder/build-query @@ -169,7 +169,10 @@ if [ "${QUERY_ACTION}" = "toolchain" ]; then EOF export CC CXX CROSS_COMPILE - for cmd in ld ar strip ranlib; do + # Note: we do not set AS since we often use gcc as the assembler + + for cmd in ar ld strip ranlib autom4te autoconf autoheader automake \ + aclocal autopoint libtool libtoolize; do var="$(echo "${cmd}"|tr '[a-z]' '[A-Z]')" if command -v "${CROSS_COMPILE}${cmd}" > /dev/null 2>&1; then echo "${var}=${CROSS_COMPILE}${cmd}" |