From: Felix Fietkau Date: Sun, 12 Nov 2023 21:20:41 +0000 (+0100) Subject: toolchain/gdb: export ZSTD_CFLAGS/LIBS to fix build on non-linux systems X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=66dfbca262f4e6ebc1b4f94fb1c4482894c26d0c;p=openwrt%2Fstaging%2Fthess.git 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 --- 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