From 27a7a64e095c52517112c88e4d9c0bf450cbd5a5 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Fri, 16 Feb 2024 17:35:02 +0530 Subject: [PATCH] chore: in progress Makefile --- cpp/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/Makefile b/cpp/Makefile index ae6c627..c561c11 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -13,7 +13,7 @@ install-deps: brew install lmdb openssl shared-lib: negentropy.o - g++ -o $(TARGET) negentropy.o -shared + g++ -shared -fPIC -o $(TARGET) negentropy.o negentropy_wrapper.o negentropy-cpp: g++ negentropy.h --std=c++20 -o negentropy.o $(INCS) @@ -22,4 +22,4 @@ c-wrapper: g++ negentropy_wrapper.h --std=c++20 -o negentropy_wrapper.o $(INCS) -I./vendor/lmdbxx/include/ clean: - rm -f negentropy.o + rm -f negentropy.o negentropy_wrapper.o libnegentropy.so