mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
dev-libs/nmeap: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO. Closes: https://bugs.gentoo.org/958451 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
parent
9b47587a95
commit
7ee5586a6a
@ -1,9 +1,9 @@
|
|||||||
# Copyright 1999-2024 Gentoo Authors
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit toolchain-funcs
|
inherit dot-a toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="Extensible NMEA-0183 (GPS) data parser in standard C"
|
DESCRIPTION="Extensible NMEA-0183 (GPS) data parser in standard C"
|
||||||
HOMEPAGE="http://nmeap.sourceforge.net/"
|
HOMEPAGE="http://nmeap.sourceforge.net/"
|
||||||
@ -16,7 +16,9 @@ IUSE="doc"
|
|||||||
|
|
||||||
BDEPEND="doc? ( app-text/doxygen )"
|
BDEPEND="doc? ( app-text/doxygen )"
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}/${P}-fix-unitialized-variable.patch" )
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-fix-unitialized-variable.patch"
|
||||||
|
)
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
@ -34,6 +36,11 @@ src_prepare() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
lto-guarantee-fat
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
local myemakeopts=(
|
local myemakeopts=(
|
||||||
AR="$(tc-getAR)"
|
AR="$(tc-getAR)"
|
||||||
@ -49,6 +56,7 @@ src_compile() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dolib.a lib/libnmeap.a
|
dolib.a lib/libnmeap.a
|
||||||
|
strip-lto-bytecode
|
||||||
|
|
||||||
doheader inc/nmeap.h inc/nmeap_def.h
|
doheader inc/nmeap.h inc/nmeap_def.h
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user