From 7b42e9bfb7f1fbbe1cde2bdcdbcdb2538060404e Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Mon, 3 Nov 2008 14:02:04 +0000 Subject: Some platforms need -fPIC when compiling C code for eventual use in a shared library --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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: -- cgit v1.2.3-70-g09d2