Some platforms need -fPIC when compiling C code for eventual use in a shared library

This commit is contained in:
Paul LeoNerd Evans 2008-11-03 14:02:04 +00:00
parent 1c46f5edfa
commit 7b42e9bfb7

View File

@ -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: