mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-26 16:11:56 +02:00
sys-devel/binutils: Sync with Gentoo
It's from Gentoo commit f049f8d0a9430ac6248d324f4379609512895dd7.
This commit is contained in:
parent
981f3fd5d1
commit
8df8db918e
@ -152,7 +152,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -145,7 +145,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -142,7 +142,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -159,7 +159,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -154,7 +154,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -160,7 +160,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
@ -165,7 +165,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
@ -161,7 +161,7 @@ src_configure() {
|
||||
strip-flags
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
@ -173,7 +173,7 @@ src_configure() {
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -174,7 +174,7 @@ src_configure() {
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -178,7 +178,7 @@ src_configure() {
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
|
||||
|
||||
local x
|
||||
|
@ -186,7 +186,7 @@ src_configure() {
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
|
||||
local x
|
||||
echo
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -35,7 +35,7 @@ else
|
||||
[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
|
||||
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
|
||||
SLOT=$(ver_cut 1-2)
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
fi
|
||||
|
||||
#
|
||||
@ -186,7 +186,7 @@ src_configure() {
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
|
||||
local x
|
||||
echo
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -83,7 +83,10 @@ MY_BUILDDIR=${WORKDIR}/build
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/toolchain/binutils-patches.git"
|
||||
EGIT_REPO_URI="
|
||||
https://anongit.gentoo.org/git/proj/toolchain/binutils-patches.git
|
||||
https://github.com/gentoo/binutils-patches
|
||||
"
|
||||
EGIT_CHECKOUT_DIR=${WORKDIR}/patches-git
|
||||
git-r3_src_unpack
|
||||
mv patches-git/9999 patch || die
|
||||
@ -91,7 +94,11 @@ src_unpack() {
|
||||
if [[ ${PV} != 9999 ]] ; then
|
||||
EGIT_BRANCH=binutils-$(ver_cut 1)_$(ver_cut 2)-branch
|
||||
fi
|
||||
EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
|
||||
EGIT_REPO_URI="
|
||||
https://sourceware.org/git/binutils-gdb.git
|
||||
https://git.sr.ht/~sourceware/binutils-gdb
|
||||
https://gitlab.com/x86-binutils/binutils-gdb.git
|
||||
"
|
||||
S=${WORKDIR}/binutils
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
git-r3_src_unpack
|
||||
@ -186,7 +193,7 @@ src_configure() {
|
||||
use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
|
||||
|
||||
# https://sourceware.org/PR32372
|
||||
append-cflags -std=gnu17
|
||||
append-cflags $(test-flags-CC -std=gnu17)
|
||||
|
||||
local x
|
||||
echo
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@ -94,7 +94,11 @@ src_unpack() {
|
||||
if [[ ${PV} != 9999 ]] ; then
|
||||
EGIT_BRANCH=binutils-$(ver_cut 1)_$(ver_cut 2)-branch
|
||||
fi
|
||||
EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git"
|
||||
EGIT_REPO_URI="
|
||||
https://sourceware.org/git/binutils-gdb.git
|
||||
https://git.sr.ht/~sourceware/binutils-gdb
|
||||
https://gitlab.com/x86-binutils/binutils-gdb.git
|
||||
"
|
||||
S=${WORKDIR}/binutils
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
git-r3_src_unpack
|
||||
|
Loading…
x
Reference in New Issue
Block a user