diff -uNr a/client/Makefile.in b/client/Makefile.in --- a/client/Makefile.in 2019-04-10 11:06:55.428378274 +0200 +++ b/client/Makefile.in 2019-04-10 13:02:54.734002880 +0200 @@ -40,16 +40,7 @@ ln -snf $^ $@ fence_virt: ${fence_virt_SOURCES:.c=.o} - $(CC) $(CFLAGS) -o $@ $^ -shared $(LIBS) -L../common -lfence_virt - -mcast.o: mcast.c - $(CC) $(CFLAGS) -fPIC -c -o $@ $^ $(INCLUDES) - -options.o: options.c - $(CC) $(CFLAGS) -fPIC -c -o $@ $^ $(INCLUDES) - -serial.o: serial.c - $(CC) $(CFLAGS) -fPIC -c -o $@ $^ $(INCLUDES) + $(CC) $(CFLAGS) -pie -o $@ $^ $(LIBS) -L../common -lfence_virt %.o: %.c $(CC) $(CFLAGS) -c -o $@ $^ $(INCLUDES)