From f3d5006d3dc86ff052a735666f0d15da6fb8858a Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Thu, 13 Oct 2022 16:41:21 +0200 Subject: [PATCH] deskutils/remind: fix build on riscv64 (+) The LTO build fails on riscv64 due to a phony linker error about ABI incompatibility. Disable LTO on riscv64 to make the build succeed. PR: 267021 MFH: 2022Q4 --- deskutils/remind/Makefile | 6 ++++++ deskutils/remind/files/extra-patch-configure.in | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 deskutils/remind/files/extra-patch-configure.in diff --git a/deskutils/remind/Makefile b/deskutils/remind/Makefile index 5a51642b9e67..d5bdc89a2ef1 100644 --- a/deskutils/remind/Makefile +++ b/deskutils/remind/Makefile @@ -11,11 +11,17 @@ WWW= https://dianne.skoll.ca/projects/remind/ LICENSE= GPLv2 +USES= autoreconf + GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-perl-build-artifacts MAKE_ARGS= INSTALL_SCRIPT="${INSTALL_SCRIPT}" INSTALL_TARGET= ${WITH_DEBUG:Dinstall:Uinstall-stripped} +# disable LTO on riscv64 +EXTRA_PATCHES_riscv64= ${FILESDIR}/extra-patch-configure.in +EXTRA_PATCHES= ${EXTRA_PATCHES_${ARCH}} + OPTIONS_DEFINE= A4 TCLTK REM2HTML REM2PDF OPTIONS_DEFAULT= LANG_US REM2HTML REM2PDF OPTIONS_SINGLE= LANGUAGE diff --git a/deskutils/remind/files/extra-patch-configure.in b/deskutils/remind/files/extra-patch-configure.in new file mode 100644 index 000000000000..bac6c6366f21 --- /dev/null +++ b/deskutils/remind/files/extra-patch-configure.in @@ -0,0 +1,10 @@ +--- configure.in.orig 2022-10-13 14:15:40 UTC ++++ configure.in +@@ -51,7 +51,6 @@ if test "$GCC" = yes; then + AC_MSG_CHECKING([whether $CC supports $f]) + if $CC -E $f /dev/null > /dev/null 2>&1 ; then + AC_MSG_RESULT([yes]) +- CFLAGS="$CFLAGS $f" + else + AC_MSG_RESULT([no]) + fi