From ceaf285f39f55a3cb68a2497b51ad601b489375f Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Sat, 17 Feb 2024 07:00:02 +0530 Subject: [PATCH] chore: fix for mac compilation --- cpp/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/Makefile b/cpp/Makefile index c40517c..9009576 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -1,7 +1,7 @@ # Build a shared library of negentropy #TODO: Need to add compilation flags based on OS -INCS = -I./ -I/opt/homebrew/include/ +INCS = -I./ -I/opt/homebrew/include/ -I./vendor/lmdbxx/include/ TARGET = libnegentropy.so .PHONY: all clean install-deps @@ -14,10 +14,10 @@ install-deps: # Generate 'negentropy.h.gch' precompiled-header: - g++ --std=c++20 -Wall -fexceptions -g negentropy.h -I./ -I./vendor/lmdbxx/include/ + g++ --std=c++20 -Wall -fexceptions -g negentropy.h $(INCS) shared-lib: negentropy.h.gch - g++ --std=c++20 -I./ -I./vendor/lmdbxx/include/ -shared -fPIC -o $(TARGET) negentropy_wrapper.c + g++ --std=c++20 $(INCS) -shared -fPIC -o $(TARGET) negentropy_wrapper.c clean: rm -f $(TARGET) negentropy.h.gch libnegentropy.so