diff options
Diffstat (limited to '200.coreutils.build')
-rw-r--r-- | 200.coreutils.build | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/200.coreutils.build b/200.coreutils.build index 95007067..a4e37425 100644 --- a/200.coreutils.build +++ b/200.coreutils.build @@ -1,17 +1,17 @@ export CFLAGS="${CFLAGS_PACKAGES}"; -parse_with_pkg_name "${2}" \ - "ftp://ftp.gnu.org/gnu/coreutils/coreutils-${COREUTILS}.tar.xz" "" \ - "ftp://ftp.gnu.org/gnu/diffutils/diffutils-${DIFFUTILS}.tar.xz" "" \ - "http://alpha.gnu.org/gnu/findutils/findutils-${FINDUTILS}.tar.gz" \ - "CFLAGS=${CFLAGS:+${CFLAGS} }-Dendpwent=setpwent" \ - "ftp://ftp.gnu.org/gnu/patch/patch-${PATCH}.tar.gz" "" \ - "ftp://ftp.gnu.org/gnu/gawk/gawk-${GAWK}.tar.xz" "" \ - "ftp://ftp.gnu.org/gnu/bash/bash-${BASH}.tar.gz" \ - "_configure_extra_args=--without-bash-malloc" \ - "ftp://ftp.gnu.org/gnu/make/make-${MAKE}.tar.bz2" "" \ - "ftp://ftp.gnu.org/gnu/grep/grep-${GREP}.tar.xz" "" \ - "ftp://ftp.gnu.org/gnu/grep/grep-${GREP}.tar.xz" "" \ - "ftp://ftp.gnu.org/gnu/sed/sed-${SED}.tar.bz2" "" \ +parse_with_pkg_name "${2}" \ + "ftp://ftp.gnu.org/gnu/coreutils/coreutils-${COREUTILS_VERSION}.tar.xz" "" \ + "ftp://ftp.gnu.org/gnu/diffutils/diffutils-${DIFFUTILS_VERSION}.tar.xz" "" \ + "http://alpha.gnu.org/gnu/findutils/findutils-${FINDUTILS_VERSION}.tar.gz" \ + "CFLAGS=${CFLAGS:+${CFLAGS} }-Dendpwent=setpwent" \ + "ftp://ftp.gnu.org/gnu/patch/patch-${PATCH_VERSION}.tar.gz" "" \ + "ftp://ftp.gnu.org/gnu/gawk/gawk-${GAWK_VERSION}.tar.xz" "" \ + "ftp://ftp.gnu.org/gnu/bash/bash-${BASH_VERSION}.tar.gz" \ + "_configure_extra_args=--without-bash-malloc" \ + "ftp://ftp.gnu.org/gnu/make/make-${MAKE_VERSION}.tar.bz2" "" \ + "ftp://ftp.gnu.org/gnu/grep/grep-${GREP_VERSION}.tar.xz" "" \ + "ftp://ftp.gnu.org/gnu/grep/grep-${GREP_VERSION}.tar.xz" "" \ + "ftp://ftp.gnu.org/gnu/sed/sed-${SED_VERSION}.tar.bz2" "" \ "ftp://sourceware.org/pub/binutils/snapshots/binutils-${BINUTILS_VERSION}.tar.bz2" ""; if is_build_script_done finished; then @@ -20,10 +20,8 @@ else fetch "${_pkg_url}"; if [ "${_pkg_name}" = "binutils" ]\ && [ "${3}" = "host" ]; then - _configure_args="--disable-werror,--prefix=${PREFIX},--with-sysroot=${PREFIX_TARGET}"; + _configure_extra_args="--disable-werror,--prefix=${PREFIX},--with-sysroot=${PREFIX_TARGET}"; _no_config_cache=${_no_prefix:=1}; _target="${TARGET}"; - else - _configure_args="-C,--host=${HOST_NATIVE},--prefix="; fi; fi; if ! is_build_script_done extracted; then @@ -41,7 +39,12 @@ if ! is_build_script_done configured; then [ ${_no_config_cache:-0} -eq 0 ] &&\ cp -a "../portage/config.cache" .; run_configure_with_extra_args \ - "../${_pkg_subdir}/configure" "${_configure_args}" --target="${TARGET}"; + "../${_pkg_subdir}/configure" \ + "${_configure_extra_args}" \ + -C \ + --host="${HOST_NATIVE}" \ + --prefix= \ + --target="${TARGET}"; set_build_script_done configured -built; else cd "${_pkg_subdir}-build-${_target:-native}"; |