mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
app-misc/remind: don't force LTO
Users should enable LTO via *FLAGS, configure shouldn't force it. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
48
app-misc/remind/files/remind-06.02.01-no-lto.patch
Normal file
48
app-misc/remind/files/remind-06.02.01-no-lto.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
Don't automagically enable LTO. Users can enable that if they want via
|
||||
*FLAGS.
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -46,43 +46,6 @@ dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_STRUCT_TM
|
||||
U="`uname -s`"
|
||||
|
||||
-# LTO fails on Solaris for some reason
|
||||
-if test "$U" != "SunOS" -a "$GCC" = yes; then
|
||||
- CFLAGS="$CFLAGS -Wall -Wextra -Wstrict-prototypes"
|
||||
- # Check for link-time optimization support
|
||||
- OLDCFLAGS="$CFLAGS"
|
||||
- CFLAGS="$CFLAGS -flto=auto"
|
||||
- AC_MSG_CHECKING([whether $CC supports -flto=auto])
|
||||
- AC_LINK_IFELSE(
|
||||
- [AC_LANG_PROGRAM(
|
||||
- [[int x = 1;]],
|
||||
- [[]])],
|
||||
- [lto=yes],
|
||||
- [lto=no]
|
||||
- )
|
||||
- AC_MSG_RESULT([$lto])
|
||||
- if test "x$lto" != "xyes" ; then
|
||||
- CFLAGS="$OLDCFLAGS"
|
||||
- else
|
||||
- AC_MSG_CHECKING([whether $CC supports -ffat-lto-object])
|
||||
- OLDCFLAGS="$CFLAGS"
|
||||
- CFLAGS="$CFLAGS -Werror -ffat-lto-objects"
|
||||
- AC_LINK_IFELSE(
|
||||
- [AC_LANG_PROGRAM(
|
||||
- [[int x = 1;]],
|
||||
- [[]])],
|
||||
- [lto=yes],
|
||||
- [lto=no]
|
||||
- )
|
||||
- AC_MSG_RESULT([$lto])
|
||||
- if test "x$lto" != "xyes" ; then
|
||||
- CFLAGS="$OLDCFLAGS"
|
||||
- else
|
||||
- CFLAGS="$OLDCFLAGS -ffat-lto-objects"
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
dnl If sizeof(time_t) is 4, try to get 64-bit time_t
|
||||
if test "$ac_cv_sizeof_time_t" = "4" ; then
|
||||
AC_MSG_NOTICE([time_t is 32-bits on this system; attempting to use 64-bit time_t])
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Ridiculously functional reminder program"
|
||||
HOMEPAGE="https://dianne.skoll.ca/projects/remind/"
|
||||
SRC_URI="https://dianne.skoll.ca/projects/remind/download/${P}.tar.gz"
|
||||
@@ -23,6 +25,16 @@ DEPEND="${RDEPEND}
|
||||
"
|
||||
DOCS="docs/* examples/defs.rem"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-06.02.01-no-lto.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# for LTO patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if [[ ${EUID} -eq 0 ]] ; then
|
||||
ewarn "Testing fails if run as root. Skipping tests"
|
||||
|
||||
Reference in New Issue
Block a user