summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-03-24 09:23:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-03-24 09:23:20 +1300
commit3f802b40ce5e11d7c176b8d315010d32c7ef6bf3 (patch)
treebbc6590054a3782153cc75b1ef1654c28fbc5832
parentMore POSIX goodness for Makefile (diff)
downloadlibayylmao-3f802b40ce5e11d7c176b8d315010d32c7ef6bf3.tar.gz
libayylmao-3f802b40ce5e11d7c176b8d315010d32c7ef6bf3.zip
Restore -fPIC to CFLAGSHEADmaster
Needs to be used for the object file build
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c1ab43d..dc3d23e 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ PREFIX = $(HOME)/.local
ALL = libayylmao.a libayylmao.so
OBJ = ayy.o lmao.o
+CFLAGS = -fPIC
+
all: $(ALL)
install: $(ALL)
@@ -19,4 +21,4 @@ clean:
libayylmao.a: libayylmao.a(ayy.o) libayylmao.a(lmao.o)
libayylmao.so: $(OBJ)
- $(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ ayy.o lmao.o
+ $(CC) $(CFLAGS) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ ayy.o lmao.o