mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
sys-libs/newlib: fix libm_nano.a installation
Add `libm_nano.a` installation in case of `nano` USE flag on, as it's now required in `nano.specs` for RISC V targets, in particular. See also: riscv/riscv-newlib@f289cef6be riscv/riscv-gnu-toolchain@2922650dd0 Closes: https://github.com/gentoo/gentoo/pull/22007 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
@@ -136,7 +136,7 @@ src_install() {
|
||||
emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
|
||||
# Rename nano lib* files to lib*_nano and move to the real ${D}
|
||||
local nanolibfiles=""
|
||||
nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex ".*/lib\(c\|g\|rdimon\)\.a" -print)
|
||||
nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex ".*/lib\(c\|g\|m\|rdimon\)\.a" -print)
|
||||
for f in ${nanolibfiles}; do
|
||||
local l="${f##${NEWLIBNANOTMPINSTALL}}"
|
||||
mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
@@ -136,7 +136,7 @@ src_install() {
|
||||
emake -j1 DESTDIR="${NEWLIBNANOTMPINSTALL}" install
|
||||
# Rename nano lib* files to lib*_nano and move to the real ${D}
|
||||
local nanolibfiles=""
|
||||
nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex ".*/lib\(c\|g\|rdimon\)\.a" -print)
|
||||
nanolibfiles=$(find "${NEWLIBNANOTMPINSTALL}" -regex ".*/lib\(c\|g\|m\|rdimon\)\.a" -print)
|
||||
for f in ${nanolibfiles}; do
|
||||
local l="${f##${NEWLIBNANOTMPINSTALL}}"
|
||||
mv -v "${f}" "${D}/${l%%\.a}_nano.a" || die
|
||||
|
||||
Reference in New Issue
Block a user