[openwrt/openwrt] toolchain/gcc: remove glibc libgcc_eh hack

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 19 10:45:32 PST 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/eb093c517421465d8636fab5eb4fb890d0858a47

commit eb093c517421465d8636fab5eb4fb890d0858a47
Author: Andre Heider <a.heider at gmail.com>
AuthorDate: Thu Feb 9 10:09:08 2023 +0100

    toolchain/gcc: remove glibc libgcc_eh hack
    
    A modern glibc only links against libgcc_eh for its tests or when building it
    static, which doesn't happen here.
    
    Reverts a hunk of: a3edea1b "add support for alternative C libraries..."
    
    Signed-off-by: Andre Heider <a.heider at gmail.com>
---
 toolchain/gcc/initial/Makefile | 2 --
 1 file changed, 2 deletions(-)

diff --git a/toolchain/gcc/initial/Makefile b/toolchain/gcc/initial/Makefile
index c71b17dd87..68a7ccd3c7 100644
--- a/toolchain/gcc/initial/Makefile
+++ b/toolchain/gcc/initial/Makefile
@@ -23,9 +23,7 @@ define Host/Install
 		install-gcc \
 		install-target-libgcc
 
-	# XXX: glibc insists on linking against libgcc_eh
 	( cd $(TOOLCHAIN_DIR)/initial/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION) ; \
-		[ -e libgcc_eh.a ] || ln -sf libgcc.a libgcc_eh.a ; \
 		cp libgcc.a libgcc_initial.a; \
 	)
 




More information about the lede-commits mailing list