From 87d65cd5e77f09d16dca099feb21d1bc8fcef0ee Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Sat, 4 Feb 2023 00:54:16 +0100 Subject: Correct compilation of object files --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c3edc8c..6e02b4d 100644 --- a/Makefile +++ b/Makefile @@ -26,13 +26,13 @@ debug: all: ${LIBNAME:=.so} ${LIBNAME:=.a} ${LIBNAME:=.so}: ${OBJ} - ${CC} ${LDFLAGS} -fPIC -shared ${OBJ} -o $@ + ${CC} ${LDFLAGS} -shared ${OBJ} -o $@ ${LIBNAME:=.a}: ${OBJ} ar rcs $@ ${OBJ} .c.o: - ${CC} ${CFLAGS} -fPIC -c $< -o $@ + ${CC} ${CFLAGS} -c $< -o $@ clean: rm -f ${OBJ} ${LIBNAME}.* *.core -- cgit v1.2.3