toolchain: gcc: 15: fix build error with glibc for aarch64 targets
authorRobert Marko <[email protected]>
Tue, 8 Jul 2025 12:17:16 +0000 (14:17 +0200)
committerRobert Marko <[email protected]>
Tue, 8 Jul 2025 12:19:18 +0000 (14:19 +0200)
commit1f8391346e1960b530d53fff4e134ee88dba2080
tree64a071a904f4529af9eb5a3925fb527b0d9c9a63
parent7caf88b63e8d290ad0d4c976af182aec8cf1906b
toolchain: gcc: 15: fix build error with glibc for aarch64 targets

GCC 14+ fails to build due to libatomic specific -march handling.
This build error triggers only with glibc and not with musl libc
which is default.

It seems that this patch from GCC14 was forgotten when GCC15 support was
being added [1].

[1] https://github.com/openwrt/openwrt/commit/44ef34350095c86227ea0cf84b816258c5195e29

Fixes: 68cb84183e38 ("toolchain: add support for GCC 15.1")
Signed-off-by: Robert Marko <[email protected]>
toolchain/gcc/patches-15.x/830-aarch64-libatomic.patch [new file with mode: 0644]
toolchain/gcc/patches-15.x/980-fix-build-error-with-Xcode-16.3.patch