From 47f99adf2824a8f52f918b82a202c83b7f235ed0 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Thu, 11 Aug 2016 12:25:08 +0200 Subject: [PATCH] Move `-fPIC` to default CFLAGS --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d2ac51a..6f5c2ec 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ SDL_LIBS != pkg-config --libs sdl LIB_VERSION = 1.0 -CFLAGS ?= -O3 -Wall +CFLAGS ?= -O3 -Wall -fPIC QUIRC_CFLAGS = -Ilib $(CFLAGS) $(SDL_CFLAGS) LIB_OBJ = \ lib/decode.o \ @@ -60,7 +60,7 @@ libquirc.so.$(LIB_VERSION): $(LIB_OBJ) $(CC) -shared -o $@ $(LIB_OBJ) $(LDFLAGS) -lm .c.o: - $(CC) -fPIC $(QUIRC_CFLAGS) -o $@ -c $< + $(CC) $(QUIRC_CFLAGS) -o $@ -c $< install: libquirc.a libquirc.so.$(LIB_VERSION) quirc-demo quirc-scanner install -o root -g root -m 0644 lib/quirc.h $(DESTDIR)$(PREFIX)/include