gcc packages: add mold as host dependency

This commit is contained in:
SupervisedThinking 2022-10-06 00:09:46 +02:00
parent e485a16a8d
commit 2fc355058b
5 changed files with 20 additions and 0 deletions

View File

@ -11,6 +11,10 @@ PKG_LONGDESC="This package contains the GNU Compiler Collection for 64-bit ARM."
PKG_DEPENDS_UNPACK+=" gcc" PKG_DEPENDS_UNPACK+=" gcc"
PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches" PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches"
if [ "${MOLD_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_HOST+=" mold:host"
fi
PKG_CONFIGURE_OPTS_HOST="--target=aarch64-none-elf \ PKG_CONFIGURE_OPTS_HOST="--target=aarch64-none-elf \
--with-sysroot=${SYSROOT_PREFIX} \ --with-sysroot=${SYSROOT_PREFIX} \
--with-gmp=${TOOLCHAIN} \ --with-gmp=${TOOLCHAIN} \

View File

@ -11,6 +11,10 @@ PKG_LONGDESC="This package contains the GNU Compiler Collection for ARM Cortex-R
PKG_DEPENDS_UNPACK+=" gcc" PKG_DEPENDS_UNPACK+=" gcc"
PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches" PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches"
if [ "${MOLD_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_HOST+=" mold:host"
fi
PKG_CONFIGURE_OPTS_HOST="--target=arm-none-eabi \ PKG_CONFIGURE_OPTS_HOST="--target=arm-none-eabi \
--with-sysroot=${SYSROOT_PREFIX} \ --with-sysroot=${SYSROOT_PREFIX} \
--with-gmp=${TOOLCHAIN} \ --with-gmp=${TOOLCHAIN} \

View File

@ -11,6 +11,10 @@ PKG_LONGDESC="This package contains the GNU Compiler Collection for 64-bit ARM."
PKG_DEPENDS_UNPACK+=" gcc" PKG_DEPENDS_UNPACK+=" gcc"
PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches" PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches"
if [ "${MOLD_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_HOST+=" mold:host"
fi
PKG_CONFIGURE_OPTS_HOST="--target=bpf \ PKG_CONFIGURE_OPTS_HOST="--target=bpf \
--with-sysroot=${SYSROOT_PREFIX} \ --with-sysroot=${SYSROOT_PREFIX} \
--with-gmp=${TOOLCHAIN} \ --with-gmp=${TOOLCHAIN} \

View File

@ -11,6 +11,10 @@ PKG_LONGDESC="This package contains the GNU Compiler Collection for OpenRISC 100
PKG_DEPENDS_UNPACK+=" gcc" PKG_DEPENDS_UNPACK+=" gcc"
PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches" PKG_PATCH_DIRS+=" $(get_pkg_directory gcc)/patches"
if [ "${MOLD_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_HOST+=" mold:host"
fi
PKG_CONFIGURE_OPTS_HOST="--target=or1k-none-elf \ PKG_CONFIGURE_OPTS_HOST="--target=or1k-none-elf \
--with-sysroot=${SYSROOT_PREFIX} \ --with-sysroot=${SYSROOT_PREFIX} \
--with-gmp=${TOOLCHAIN} \ --with-gmp=${TOOLCHAIN} \

View File

@ -14,6 +14,10 @@ PKG_DEPENDS_HOST="ccache:host autoconf:host binutils:host gmp:host mpfr:host mpc
PKG_DEPENDS_INIT="toolchain" PKG_DEPENDS_INIT="toolchain"
PKG_LONGDESC="This package contains the GNU Compiler Collection." PKG_LONGDESC="This package contains the GNU Compiler Collection."
if [ "${MOLD_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_HOST+=" mold:host"
fi
case ${TARGET_ARCH} in case ${TARGET_ARCH} in
arm|riscv64) arm|riscv64)
OPTS_LIBATOMIC="--enable-libatomic" OPTS_LIBATOMIC="--enable-libatomic"