commit: dc98ced8ef0ff5784b8fe79b031c959526156fd1 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Thu Jun 12 19:18:20 2025 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Thu Jun 12 19:19:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc98ced8
toolchain.eclass: Add temporary solution for m68k -malign-int profiles (evil integers!) Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> eclass/toolchain.eclass | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 418ca888f14b..12a1ec24132b 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -772,6 +772,19 @@ do_gcc_gentoo_patches() { eapply "${WORKDIR}"/musl/{,nocross/}*.patch ${shopt_save} fi + + # + # THIS IS A TEMPORARY SOLUTION AND SHOULD BE REPLACED BY A PROPER FIX. + # Adding it so we can already build stages for further testing. -dilfridge + # + if [[ ${CTARGET} == m68*-aligned-* ]]; then + einfo "Hard-wiring m68k -malign-int switch into gcc" + echo '#define DRIVER_SELF_SPECS "-malign-int"' >> "${S}/gcc/config/m68k/m68k.h" || die + fi + # + # END TEMPORARY SOLUTION + # + fi }