lmdb: fix compilation with glibc 13216/head
authorRosen Penev <rosenp@gmail.com>
Wed, 26 Aug 2020 00:44:47 +0000 (17:44 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 26 Aug 2020 23:10:24 +0000 (16:10 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/lmdb/Makefile

index 27c1e672887bd1d80b7462b8e6215686e34551f8..421d9ae43ea30020efe5235695739c3eb8b6abf4 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lmdb
 PKG_VERSION:=0.9.24
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=LMDB_$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/LMDB/lmdb/tar.gz/LMDB_$(PKG_VERSION)?
@@ -64,7 +64,7 @@ define Build/Compile
        $(MAKE) -C "$(PKG_BUILD_DIR)/$(MAKE_PATH)/" \
                CC="$(TARGET_CC)" \
                CFLAGS+="$(TARGET_CFLAGS)" \
-               LDFLAGS+="$(TARGET_LDFLAGS)" \
+               LDFLAGS+="$(TARGET_LDFLAGS) $(if $(CONFIG_USE_GLIBC),-lpthread)" \
                FPIC="$(FPIC)" \
                AR="$(TARGET_AR)"
 endef