toolchain/gdb: add pthread to CFLAGS/LDFLAGS for zstd
authorFelix Fietkau <nbd@nbd.name>
Tue, 19 Dec 2023 09:53:41 +0000 (10:53 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 19 Dec 2023 09:54:19 +0000 (10:54 +0100)
Works around a build issue when building on a host with an older glibc,
where it would fail to detect ELF support in libbfd

Signed-off-by: Felix Fietkau <nbd@nbd.name>
toolchain/gdb/Makefile

index 5ad0cd2d8cbf9c43bd1b0f7cf47e36956bc3f607..ecb31398e6edfd176fae2539c429c7954fd915e3 100644 (file)
@@ -22,8 +22,8 @@ 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
+export ZSTD_CFLAGS=-I$(STAGING_DIR_HOST)/include -pthread
+export ZSTD_LIBS=-L$(STAGING_DIR_HOST)/lib -lzstd -lpthread
 
 HOST_CONFIGURE_VARS += \
        acx_cv_cc_gcc_supports_ada=false \