From b13655f7a5354ff268156dfbcd945f9a8f9c00cf 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] 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 666f976..f37cf66 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: