From 8b4866c98775680abc49e8c1c0c50daa25dea052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 3 Dec 2019 11:59:59 +0100 Subject: [PATCH 2/5] Make use of -fPIC parameter when building' --- c/Makefile | 2 +- cpp/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/Makefile b/c/Makefile index b27449c..bf79462 100644 --- a/c/Makefile +++ b/c/Makefile @@ -77,7 +77,7 @@ $(LIBFILE): $(LIBOBJ) # Object files %.o: %.c .deps/timestamp - $(CC) $(CFLAGS) -c -o $@ -MMD -MF .deps/$*.d $< + $(CC) $(CFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $< # Have a place to store header dependencies automatically generated by compiler .deps/timestamp: diff --git a/cpp/Makefile b/cpp/Makefile index 62e03c5..deb8924 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -73,7 +73,7 @@ $(LIBFILE): $(LIBOBJ) # Object files %.o: %.cpp .deps/timestamp - $(CXX) $(CXXFLAGS) -c -o $@ -MMD -MF .deps/$*.d $< + $(CXX) $(CXXFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $< # Have a place to store header dependencies automatically generated by compiler .deps/timestamp: -- 2.24.0