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: