From c52f4c6b816c35fe489e83b85dc8a0c925644e47 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 14 Jul 2024 23:43:10 -0400 Subject: sci-libs/fftw: make sure elibtoolize is applied Needed to e.g. pass LTO warning flags through to the linker. Signed-off-by: Eli Schwartz --- sci-libs/fftw/fftw-3.3.10.ebuild | 12 ++++++++---- sci-libs/fftw/fftw-9999.ebuild | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/sci-libs/fftw/fftw-3.3.10.ebuild b/sci-libs/fftw/fftw-3.3.10.ebuild index 213b53606d55..3e3cdf42bc76 100644 --- a/sci-libs/fftw/fftw-3.3.10.ebuild +++ b/sci-libs/fftw/fftw-3.3.10.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 FORTRAN_NEEDED=fortran -inherit fortran-2 multibuild multilib-minimal toolchain-funcs +inherit fortran-2 libtool multibuild multilib-minimal toolchain-funcs DESCRIPTION="Fast C library for the Discrete Fourier Transform" HOMEPAGE="https://www.fftw.org/" @@ -50,8 +50,12 @@ pkg_setup() { src_prepare() { default - # fix info file for category directory - [[ ${PV} == *9999 ]] && eautoreconf + if [[ ${PV} == *9999 ]]; then + # fix info file for category directory + eautoreconf + else + elibtoolize + fi } multilib_src_configure() { diff --git a/sci-libs/fftw/fftw-9999.ebuild b/sci-libs/fftw/fftw-9999.ebuild index f3fa7dd693b0..f1bc2d876ad8 100644 --- a/sci-libs/fftw/fftw-9999.ebuild +++ b/sci-libs/fftw/fftw-9999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 FORTRAN_NEEDED=fortran -inherit fortran-2 multibuild multilib-minimal toolchain-funcs +inherit fortran-2 libtool multibuild multilib-minimal toolchain-funcs DESCRIPTION="Fast C library for the Discrete Fourier Transform" HOMEPAGE="https://www.fftw.org/" @@ -50,8 +50,12 @@ pkg_setup() { src_prepare() { default - # fix info file for category directory - [[ ${PV} == *9999 ]] && eautoreconf + if [[ ${PV} == *9999 ]]; then + # fix info file for category directory + eautoreconf + else + elibtoolize + fi } multilib_src_configure() { -- cgit v1.2.3-65-gdbad