mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
app-emulation/wine-vanilla: pass -std=gnu17 for gcc15 for now
Bug: https://bugs.gentoo.org/943849 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -261,6 +261,9 @@ src_configure() {
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||
|
||||
# broken with gcc-15's c23 default (TODO: try w/o occasionally, bug #943849)
|
||||
append-cflags -std=gnu17
|
||||
|
||||
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
||||
# https://github.com/gentoo/gentoo/pull/28355
|
||||
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
||||
|
||||
@@ -255,6 +255,9 @@ src_configure() {
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
use crossdev-mingw || PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
|
||||
|
||||
# broken with gcc-15's c23 default (TODO: try w/o occasionally, bug #943849)
|
||||
append-cflags -std=gnu17
|
||||
|
||||
# temporary workaround for tc-ld-force-bfd not yet enforcing with mold
|
||||
# https://github.com/gentoo/gentoo/pull/28355
|
||||
[[ $($(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) == mold* ]] &&
|
||||
|
||||
@@ -281,6 +281,9 @@ src_configure() {
|
||||
filter-flags -Wl,--gc-sections # runtime issues (bug #931329)
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
|
||||
# broken with gcc-15's c23 default (TODO: try w/o occasionally, bug #943849)
|
||||
append-cflags -std=gnu17
|
||||
|
||||
# wine uses linker tricks unlikely to work with non-bfd/lld (bug #867097)
|
||||
# (do self test until https://github.com/gentoo/gentoo/pull/28355)
|
||||
if [[ $(LC_ALL=C $(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) != @(LLD|GNU\ ld)* ]]
|
||||
|
||||
@@ -284,6 +284,9 @@ src_configure() {
|
||||
filter-flags -Wl,--gc-sections # runtime issues (bug #931329)
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
|
||||
# broken with gcc-15's c23 default (TODO: try w/o occasionally, bug #943849)
|
||||
append-cflags -std=gnu17
|
||||
|
||||
# wine uses linker tricks unlikely to work with non-bfd/lld (bug #867097)
|
||||
# (do self test until https://github.com/gentoo/gentoo/pull/28355)
|
||||
if [[ $(LC_ALL=C $(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) != @(LLD|GNU\ ld)* ]]
|
||||
|
||||
@@ -284,6 +284,9 @@ src_configure() {
|
||||
filter-flags -Wl,--gc-sections # runtime issues (bug #931329)
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
|
||||
# broken with gcc-15's c23 default (TODO: try w/o occasionally, bug #943849)
|
||||
append-cflags -std=gnu17
|
||||
|
||||
# wine uses linker tricks unlikely to work with non-bfd/lld (bug #867097)
|
||||
# (do self test until https://github.com/gentoo/gentoo/pull/28355)
|
||||
if [[ $(LC_ALL=C $(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) != @(LLD|GNU\ ld)* ]]
|
||||
|
||||
@@ -284,6 +284,9 @@ src_configure() {
|
||||
filter-flags -Wl,--gc-sections # runtime issues (bug #931329)
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
|
||||
# broken with gcc-15's c23 default (TODO: try w/o occasionally, bug #943849)
|
||||
append-cflags -std=gnu17
|
||||
|
||||
# wine uses linker tricks unlikely to work with non-bfd/lld (bug #867097)
|
||||
# (do self test until https://github.com/gentoo/gentoo/pull/28355)
|
||||
if [[ $(LC_ALL=C $(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) != @(LLD|GNU\ ld)* ]]
|
||||
|
||||
@@ -284,6 +284,9 @@ src_configure() {
|
||||
filter-flags -Wl,--gc-sections # runtime issues (bug #931329)
|
||||
use custom-cflags || strip-flags # can break in obscure ways at runtime
|
||||
|
||||
# broken with gcc-15's c23 default (TODO: try w/o occasionally, bug #943849)
|
||||
append-cflags -std=gnu17
|
||||
|
||||
# wine uses linker tricks unlikely to work with non-bfd/lld (bug #867097)
|
||||
# (do self test until https://github.com/gentoo/gentoo/pull/28355)
|
||||
if [[ $(LC_ALL=C $(tc-getCC) ${LDFLAGS} -Wl,--version 2>/dev/null) != @(LLD|GNU\ ld)* ]]
|
||||
|
||||
Reference in New Issue
Block a user