Some platforms need -fPIC when compiling C code for eventual use in a shared library
This commit is contained in:
parent
1c46f5edfa
commit
7b42e9bfb7
2
Makefile
2
Makefile
|
@ -22,7 +22,7 @@ libtermkey.so: termkey.o driver-csi.o driver-ti.o
|
||||||
$(LD) -shared -soname=$(SONAME) -o $@ $^ -lncurses
|
$(LD) -shared -soname=$(SONAME) -o $@ $^ -lncurses
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -o $@ -c $^
|
$(CC) $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -fPIC -o $@ -c $^
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in New Issue