Add back -fPIC

This commit is contained in:
NagyZoltanPeter 2024-09-18 02:55:59 +02:00
parent 47fb555f26
commit 8e08aa246b
No known key found for this signature in database
GPG Key ID: 16EADB9673B65368

View File

@ -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