diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-07-14 18:10:03 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-07-16 16:29:16 +0200 |
commit | 0b4c50fb24e49b2157292a799d78d386429e2331 (patch) | |
tree | 889e66f90ec908881a5265127780a27d0c524444 /gkbuilds | |
parent | gen_funcs.sh: _tc-getPROG(): Fix overriding of default program (diff) | |
download | genkernel-0b4c50fb24e49b2157292a799d78d386429e2331.tar.gz genkernel-0b4c50fb24e49b2157292a799d78d386429e2331.tar.bz2 genkernel-0b4c50fb24e49b2157292a799d78d386429e2331.zip |
busybox: Honor toolchain
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r-- | gkbuilds/busybox.gkbuild | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gkbuilds/busybox.gkbuild b/gkbuilds/busybox.gkbuild index df993922..ac09363e 100644 --- a/gkbuilds/busybox.gkbuild +++ b/gkbuilds/busybox.gkbuild @@ -1,9 +1,26 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 src_prepare() { default + # flag cleanup + sed -i -r \ + -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ + Makefile.flags || gen_die + + sed -i \ + -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ + -e "/^CC\>/s:=.*:= $(tc-getCC):" \ + -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ + -e "/^HOSTCXX/s:=.*:= $(tc-getBUILD_CXX):" \ + -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ + Makefile || gen_die + + sed -i \ + -e 's:-static-libgcc::' \ + Makefile.flags || die + cp "${TEMP}"/busybox-config "${S}"/.config \ || die "Failed top copy '${TEMP}/busybox-config' to '${S}/.config'!" |