[openwrt/openwrt] toolchain/binutils: export ZSTD_CFLAGS/LIBS to fix non-Linux build

LEDE Commits lede-commits at lists.infradead.org
Fri Aug 22 03:34:53 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3b54f821d0337fbe2e06b005cd8bd682a99df20d

commit 3b54f821d0337fbe2e06b005cd8bd682a99df20d
Author: Mark Mentovai <mark at mentovai.com>
AuthorDate: Sun Aug 17 00:41:29 2025 -0400

    toolchain/binutils: export ZSTD_CFLAGS/LIBS to fix non-Linux build
    
    This is what 66dfbca262f4e6ebc1b4f94fb1c4482894c26d0c (updated by
    2872ff7be19cfd20c95c4cbc880c0af38f82ea15) did for toolchain/gdb, but for
    toolchain/binutils, following the switch to binutils-2.44 by default in
    854d88be8ad4f26059deeb3748617ca32dfdff15.
    
    Signed-off-by: Mark Mentovai <mark at mentovai.com>
    Link: https://github.com/openwrt/openwrt/pull/19833
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 toolchain/binutils/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index 84f12c6ad3..7077195e27 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -38,6 +38,9 @@ PATCH_DIR:=./patches/$(PKG_VERSION)
 
 include $(INCLUDE_DIR)/toolchain-build.mk
 
+export ZSTD_CFLAGS=-I$(STAGING_DIR_HOST)/include -pthread
+export ZSTD_LIBS=-L$(STAGING_DIR_HOST)/lib -lzstd -lpthread
+
 ifdef CONFIG_GCC_USE_GRAPHITE
   GRAPHITE_CONFIGURE:= --with-isl=$(STAGING_DIR_HOST)
 else




More information about the lede-commits mailing list