From ab87b13b75fef6790b2fb6de1a58ab0214ddaeb6 Mon Sep 17 00:00:00 2001 From: David Evans Date: Mon, 25 Jun 2018 18:20:04 +0100 Subject: [PATCH 1/2] Reverse prereqs order to get build to work --- build/Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Makefile.linux b/build/Makefile.linux index 1421451..fbf92a5 100644 --- a/build/Makefile.linux +++ b/build/Makefile.linux @@ -48,7 +48,7 @@ LIBS = $(ARROW_LIB) \ $(ZLIB_LIB) \ $(ZSTD_LIB) -libparquet.so: $(OBJ) $(LIBS) +libparquet.so: $(LIBS) $(OBJ) $(CC) -shared -o $@ $(OBJ) $(LDFLAGS) parquet_filter.o: $(VTABLE)/parquet_filter.cc $(VTABLE)/parquet_filter.h From b7da04433b5f447ed7f0d976a9a55b213f806c7f Mon Sep 17 00:00:00 2001 From: David Evans Date: Mon, 25 Jun 2018 18:20:24 +0100 Subject: [PATCH 2/2] Include header locations we need --- build/Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Makefile.linux b/build/Makefile.linux index fbf92a5..14a60e7 100644 --- a/build/Makefile.linux +++ b/build/Makefile.linux @@ -31,7 +31,7 @@ ZSTD_LIB = $(ZSTD)/lib/libzstd.a # Flags CC = g++ CPUS:=$(shell nproc) -CFLAGS = -I $(SQLITE) -O3 -std=c++11 -Wall -fPIC -g +CFLAGS = -I $(SQLITE) -I $(PARQUET_CPP)/src -I $(ARROW)/cpp/src -O3 -std=c++11 -Wall -fPIC -g LDFLAGS = -O3 \ -Wl,--whole-archive $(PARQUET_CPP_LIB) $(LZ4_LIB) $(ZSTD_LIB) $(THRIFT_LIB) $(SNAPPY_LIB) $(ARROW_LIB) \