aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-03 14:02:04 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-11-03 14:02:04 +0000
commit7b42e9bfb7f1fbbe1cde2bdcdbcdb2538060404e (patch)
tree7c2760245ee50e2a86b59097f92d396062768f34 /Makefile
parent1c46f5edfaba9976580efe4b30b385a29a4d56c3 (diff)
downloadtermo-7b42e9bfb7f1fbbe1cde2bdcdbcdb2538060404e.tar.gz
termo-7b42e9bfb7f1fbbe1cde2bdcdbcdb2538060404e.tar.xz
termo-7b42e9bfb7f1fbbe1cde2bdcdbcdb2538060404e.zip
Some platforms need -fPIC when compiling C code for eventual use in a shared library
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c6a1934..d6a5ff8 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ libtermkey.so: termkey.o driver-csi.o driver-ti.o
$(LD) -shared -soname=$(SONAME) -o $@ $^ -lncurses
%.o: %.c
- $(CC) $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -o $@ -c $^
+ $(CC) $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -fPIC -o $@ -c $^
.PHONY: clean
clean: