1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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
This commit is contained in:
Robert Clausecker 2022-10-13 16:41:21 +02:00 committed by Dima Panov
parent 0881c31881
commit f3d5006d3d
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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