summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Sapkin2025-12-24 02:32:01 +0000
committerRobert Marko2025-12-24 18:39:54 +0000
commit116083dd912db099ddb42f076999819e0baf3ff2 (patch)
treeadcfbc692c31031b5675049840df5f934f907aea
parenteaeae068cccf549acf2c296e7e1ad0e331def102 (diff)
downloadopenwrt-116083dd912db099ddb42f076999819e0baf3ff2.tar.gz
toolchain: fix libgcc ABI for libc
libc depends on knowing libgcc's ABI, so it needs to be evaluated first. Otherwise libc will depend on an ABI-less libgcc causing the rest of the toolchain to fail. Building package index... ERROR: unable to select packages: libgcc (virtual): note: please select one of the 'provided by' packages explicitly provided by: libgcc1 required by: world[libgcc] Before: libc fused dependencies: libgcc libgcc fused dependencies: libatomic fused dependencies: libgcc1 After: libgcc fused dependencies: libc fused dependencies: libgcc1 libatomic fused dependencies: libgcc1 Signed-off-by: George Sapkin <george@sapk.in> Link: https://github.com/openwrt/openwrt/pull/21265 (cherry picked from commit 5e32bfbf4bbe8fa4517f27d91d5f53177f7b836a) Link: https://github.com/openwrt/openwrt/pull/21253 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--package/libs/toolchain/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/libs/toolchain/Makefile b/package/libs/toolchain/Makefile
index f73004bddd..f1f15eddc0 100644
--- a/package/libs/toolchain/Makefile
+++ b/package/libs/toolchain/Makefile
@@ -781,8 +781,9 @@ else
endif
-$(eval $(call BuildPackage,libc))
$(eval $(call BuildPackage,libgcc))
+# libc depends on knowing libgcc's ABI, so it needs to be evaluated first
+$(eval $(call BuildPackage,libc))
$(eval $(call BuildPackage,libatomic))
$(eval $(call BuildPackage,libquadmath))
$(eval $(call BuildPackage,libstdcpp))