mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-08 19:02:10 +01:00
sys-devel/binutils: Sync with Gentoo
It's from Gentoo commit 95805f7262242992d5200428925c75eaa7d910cb.
This commit is contained in:
parent
a3055404ff
commit
b02b1ee958
@ -32,7 +32,7 @@ else
|
|||||||
[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
|
[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
|
||||||
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
|
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
|
||||||
SLOT=$(ver_cut 1-2)
|
SLOT=$(ver_cut 1-2)
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc ~x86"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@ -32,7 +32,7 @@ else
|
|||||||
[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
|
[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
|
||||||
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
|
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
|
||||||
SLOT=$(ver_cut 1-2)
|
SLOT=$(ver_cut 1-2)
|
||||||
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -250,6 +250,11 @@ src_configure() {
|
|||||||
--libdir="${EPREFIX}"${LIBPATH}
|
--libdir="${EPREFIX}"${LIBPATH}
|
||||||
--libexecdir="${EPREFIX}"${LIBPATH}
|
--libexecdir="${EPREFIX}"${LIBPATH}
|
||||||
--includedir="${EPREFIX}"${INCPATH}
|
--includedir="${EPREFIX}"${INCPATH}
|
||||||
|
# portage's econf() does not detect presence of --d-d-t
|
||||||
|
# because it greps only top-level ./configure. But not
|
||||||
|
# libiberty's or bfd's configure.
|
||||||
|
--disable-dependency-tracking
|
||||||
|
--disable-silent-rules
|
||||||
--enable-obsolete
|
--enable-obsolete
|
||||||
--enable-shared
|
--enable-shared
|
||||||
--enable-threads
|
--enable-threads
|
||||||
@ -331,11 +336,11 @@ src_compile() {
|
|||||||
cd "${MY_BUILDDIR}" || die
|
cd "${MY_BUILDDIR}" || die
|
||||||
|
|
||||||
# see Note [tooldir hack for ldscripts]
|
# see Note [tooldir hack for ldscripts]
|
||||||
emake V=1 tooldir="${EPREFIX}${TOOLPATH}" all
|
emake tooldir="${EPREFIX}${TOOLPATH}" all
|
||||||
|
|
||||||
# only build info pages if the user wants them
|
# only build info pages if the user wants them
|
||||||
if use doc ; then
|
if use doc ; then
|
||||||
emake V=1 info
|
emake info
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# we nuke the manpages when we're left with junk
|
# we nuke the manpages when we're left with junk
|
||||||
@ -349,7 +354,7 @@ src_test() {
|
|||||||
# bug #637066
|
# bug #637066
|
||||||
filter-flags -Wall -Wreturn-type
|
filter-flags -Wall -Wreturn-type
|
||||||
|
|
||||||
emake -k V=1 check
|
emake -k check
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
@ -358,7 +363,7 @@ src_install() {
|
|||||||
cd "${MY_BUILDDIR}" || die
|
cd "${MY_BUILDDIR}" || die
|
||||||
|
|
||||||
# see Note [tooldir hack for ldscripts]
|
# see Note [tooldir hack for ldscripts]
|
||||||
emake V=1 DESTDIR="${D}" tooldir="${EPREFIX}${LIBPATH}" install
|
emake DESTDIR="${D}" tooldir="${EPREFIX}${LIBPATH}" install
|
||||||
rm -rf "${ED}"/${LIBPATH}/bin || die
|
rm -rf "${ED}"/${LIBPATH}/bin || die
|
||||||
use static-libs || find "${ED}" -name '*.la' -delete
|
use static-libs || find "${ED}" -name '*.la' -delete
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user