dev-lang/uasm: fix build on newer gcc

ideally the source should be fixed upstream. but many of the
existing fixes have already been reported to upstream, both by
myself and others [1] [2] and upstream has not been responsive.
so just patch it up with -std=gnu17 for now.

1: https://github.com/Terraspace/UASM/issues/197
2: https://github.com/Terraspace/UASM/pulls
Closes: https://bugs.gentoo.org/951108
Signed-off-by: NRK <nrk@disroot.org>
Closes: https://github.com/gentoo/gentoo/pull/40998
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
NRK
2025-03-10 13:53:55 +00:00
committed by Sam James
parent 63c730b981
commit 51143f93de
2 changed files with 4 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ src_compile() {
append-cflags -fcommon
# https://github.com/Terraspace/UASM/issues/197
append-cflags -Wno-error=incompatible-pointer-types
# BUG: 951108
append-cflags -std=gnu17
emake -f gccLinux64.mak \
CC="$(tc-getCC)" \

View File

@@ -31,6 +31,8 @@ src_compile() {
append-cflags -fcommon
# BUG: https://github.com/Terraspace/UASM/issues/197
append-cflags -Wno-error=incompatible-pointer-types
# BUG: 951108
append-cflags -std=gnu17
emake -f Makefile-Linux-GCC-64.mak \
CC="$(tc-getCC)" \