From ebe1eb852a43b5fbb2512bf73b86cc17255558ea Mon Sep 17 00:00:00 2001 From: Andras Bendzsak Date: Fri, 7 Jul 2023 00:27:40 +0200 Subject: [PATCH] Fix broken snappy support in leveldb Without exporting the compiling flags the build_detect_platform is not able to detect the snappy support and does not set the SNAPPY C macro. --- c_src/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/c_src/Makefile b/c_src/Makefile index 8de7e330..d5d62d9e 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -1,11 +1,11 @@ -LEVELDB_VSN ?= "2.0.38" +export LEVELDB_VSN ?= "2.0.38" SNAPPY_VSN ?= "1.1.9" BASEDIR = $(shell pwd) -LDFLAGS := $(LDFLAGS) -L$(BASEDIR)/system/lib -LD_LIBRARY_PATH := $(BASEDIR)/system/lib:$(LD_LIBRARY_PATH) -CFLAGS := $(CFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC -CXXFLAGS := $(CXXFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC +export LDFLAGS := $(LDFLAGS) -L$(BASEDIR)/system/lib +export LD_LIBRARY_PATH := $(BASEDIR)/system/lib:$(LD_LIBRARY_PATH) +export CFLAGS := $(CFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC +export CXXFLAGS := $(CXXFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC get-deps: if [ ! -r snappy-$(SNAPPY_VSN).tar.gz ]; then \