From 27d489fa56714910d7249abc9f72dcd22cad66da Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 2 Feb 2023 13:38:20 +0100 Subject: Move -fPIC from CFLAGS to the target body --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- cgit v1.2.3