[openwrt/openwrt] toolchain/binutils: get rid of outdated libiberty hack

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


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

commit f090e6495d3a3ad989799b8e1522def09220cb19
Author: Andre Heider <a.heider at gmail.com>
AuthorDate: Wed Feb 8 18:58:05 2023 +0100

    toolchain/binutils: get rid of outdated libiberty hack
    
    This reverts commit 68fcb15f90edd92ef36990c5696b9e79df07a6ec.
    
    binutils syncs libiberty from gcc, which defaults to not installing itself
    since [0], see also [1].
    
    That change is apparently part of binutils 2.24, and the oldest supported
    version here is 2.37, hence we can remove this hack.
    
    [0] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=48d7db63ff581b026e057badf39f1f23fdf47928
    [1] https://gcc.gnu.org/onlinedocs/libiberty/Using.html
    
    Signed-off-by: Andre Heider <a.heider at gmail.com>
---
 toolchain/binutils/Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index 0b7558e358..ef3123aeb6 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -100,7 +100,6 @@ define Host/Install
 		prefix=$(TOOLCHAIN_DIR) \
 		install
 	$(call FixupLibdir,$(TOOLCHAIN_DIR)/initial)
-	$(RM) $(TOOLCHAIN_DIR)/initial/lib/libiberty.a
 	$(CP) $(TOOLCHAIN_DIR)/bin/$(REAL_GNU_TARGET_NAME)-readelf $(HOST_BUILD_PREFIX)/bin/readelf
 endef
 




More information about the lede-commits mailing list