From 66dfbca262f4e6ebc1b4f94fb1c4482894c26d0c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 12 Nov 2023 22:20:41 +0100 Subject: [PATCH] toolchain/gdb: export ZSTD_CFLAGS/LIBS to fix build on non-linux systems Avoids picking up libs and header files from musl Signed-off-by: Felix Fietkau --- toolchain/gdb/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index 9c0ed520bd..5ad0cd2d8c 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -22,6 +22,9 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/toolchain-build.mk +export ZSTD_CFLAGS=-I$(STAGING_DIR_HOST)/include +export ZSTD_LIBS=-L$(STAGING_DIR_HOST)/lib -lzstd + HOST_CONFIGURE_VARS += \ acx_cv_cc_gcc_supports_ada=false \ gdb_cv_func_sigsetjmp=yes -- 2.30.2