From 8e08aa246bb2dbd4e208d5800076c48ea788baa4 Mon Sep 17 00:00:00 2001 From: NagyZoltanPeter <113987313+NagyZoltanPeter@users.noreply.github.com> Date: Wed, 18 Sep 2024 02:55:59 +0200 Subject: [PATCH] Add back -fPIC --- cpp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/Makefile b/cpp/Makefile index 95c77d7..66c1c5d 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -26,7 +26,7 @@ build-lib: ifeq ($(OS),Windows_NT) g++ -O0 -g -std=c++20 $(INCS) -shared -fPIC -o $(TARGET) $(NEGENTROPY_ROOT)negentropy_wrapper.cpp -lcrypto -lssl -L/opt/homebrew/lib/ else - g++ -O0 -g -std=c++20 $(INCS) -c negentropy_wrapper.cpp + g++ -O0 -g -std=c++20 $(INCS) -fPIC -c negentropy_wrapper.cpp ar rcs $(TARGET) negentropy_wrapper.o endif