media-libs/libltc: run elibtoolize in non-live ebuild

When building live, we always run eautoreconf. However, even in release
mode we should still run elibtoolize to get important fixes -- such as
the ones that pass through LTO sanity flags to the link phase.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-05-05 00:44:54 -04:00
committed by Sam James
parent 3e5889e2fc
commit bc2b3aa851
2 changed files with 13 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -9,6 +9,7 @@ if [[ ${PV} == *9999 ]]; then
inherit git-r3 autotools
EGIT_REPO_URI="https://github.com/x42/libltc"
else
inherit libtool
SRC_URI="https://github.com/x42/libltc/releases/download/v${PV}/${P}.tar.gz"
KEYWORDS="amd64"
fi
@@ -19,7 +20,11 @@ RESTRICT="mirror"
src_prepare() {
default
[[ ${PV} == *9999 ]] && eautoreconf
if [[ ${PV} = *9999 ]]; then
eautoreconf
else
elibtoolize
fi
}
src_install() {

View File

@@ -9,6 +9,7 @@ if [[ ${PV} == *9999 ]]; then
inherit git-r3 autotools
EGIT_REPO_URI="https://github.com/x42/libltc"
else
inherit libtool
SRC_URI="https://github.com/x42/libltc/releases/download/v${PV}/${P}.tar.gz"
KEYWORDS="~amd64"
fi
@@ -19,7 +20,11 @@ RESTRICT="mirror"
src_prepare() {
default
[[ ${PV} == *9999 ]] && eautoreconf
if [[ ${PV} = *9999 ]]; then
eautoreconf
else
elibtoolize
fi
}
src_install() {