aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-02 13:38:20 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-02 13:38:20 +0100
commit27d489fa56714910d7249abc9f72dcd22cad66da (patch)
treec3111e978e18ffa07f1e68a4e20e703d11ede726
parentab8d8b26603cbac6e83e742a712b22d6eed550d4 (diff)
downloadlog-27d489fa56714910d7249abc9f72dcd22cad66da.tar.gz
log-27d489fa56714910d7249abc9f72dcd22cad66da.zip
Move -fPIC from CFLAGS to the target body
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f342347..5fb97ed 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ ${LIBNAME:=.a}: ${OBJ}
ar rcs $@ ${OBJ}
.c.o:
- ${CC} ${CFLAGS} -c $<
+ ${CC} ${CFLAGS} -fPIC -c $<
all: ${LIBNAME:=.so} ${LIBNAME:=.a}