Skip to content

Commit ebe1eb8

Browse files
committed
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.
1 parent edfd392 commit ebe1eb8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

c_src/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
LEVELDB_VSN ?= "2.0.38"
1+
export LEVELDB_VSN ?= "2.0.38"
22
SNAPPY_VSN ?= "1.1.9"
33
BASEDIR = $(shell pwd)
44

5-
LDFLAGS := $(LDFLAGS) -L$(BASEDIR)/system/lib
6-
LD_LIBRARY_PATH := $(BASEDIR)/system/lib:$(LD_LIBRARY_PATH)
7-
CFLAGS := $(CFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC
8-
CXXFLAGS := $(CXXFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC
5+
export LDFLAGS := $(LDFLAGS) -L$(BASEDIR)/system/lib
6+
export LD_LIBRARY_PATH := $(BASEDIR)/system/lib:$(LD_LIBRARY_PATH)
7+
export CFLAGS := $(CFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC
8+
export CXXFLAGS := $(CXXFLAGS) -I $(BASEDIR)/system/include -I. -I $(BASEDIR)/leveldb/include -fPIC
99

1010
get-deps:
1111
if [ ! -r snappy-$(SNAPPY_VSN).tar.gz ]; then \

0 commit comments

Comments
 (0)