Skip to content

Commit

Permalink
toolchain/gdb: add pthread to CFLAGS/LDFLAGS for zstd
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nbd168 committed Dec 19, 2023
1 parent 6d546b3 commit 2872ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toolchain/gdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 2872ff7

Please sign in to comment.