Skip to content

Commit 3b54f82

Browse files
markmentovairobimarko
authored andcommitted
toolchain/binutils: export ZSTD_CFLAGS/LIBS to fix non-Linux build
This is what 66dfbca (updated by 2872ff7) did for toolchain/gdb, but for toolchain/binutils, following the switch to binutils-2.44 by default in 854d88b. Signed-off-by: Mark Mentovai <[email protected]> Link: openwrt/openwrt#19833 Signed-off-by: Robert Marko <[email protected]>
1 parent 5b3c823 commit 3b54f82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

toolchain/binutils/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ PATCH_DIR:=./patches/$(PKG_VERSION)
3838

3939
include $(INCLUDE_DIR)/toolchain-build.mk
4040

41+
export ZSTD_CFLAGS=-I$(STAGING_DIR_HOST)/include -pthread
42+
export ZSTD_LIBS=-L$(STAGING_DIR_HOST)/lib -lzstd -lpthread
43+
4144
ifdef CONFIG_GCC_USE_GRAPHITE
4245
GRAPHITE_CONFIGURE:= --with-isl=$(STAGING_DIR_HOST)
4346
else

0 commit comments

Comments
 (0)