Fix build errors on Ubuntu Xenial 64 bit.

Add -fPIC flag for building the lib, also add -Wl,--allow-shlib-undefined
in the client LDFLAGS.
This commit is contained in:
Chintan Parikh
2017-10-02 10:47:15 -07:00
parent e5663f3941
commit dcb66b3641
2 changed files with 4 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ HEADERS := $(wildcard *.h)
%.o: %.c $(HEADERS)
# $(CC) -Wall -Werror -g -std=gnu99 $(CFLAGS) -c $*.c -o $*.o
$(CC) -Wall -g -std=gnu99 $(CFLAGS) -c $*.c -o $*.o
$(CC) -Wall -g -fPIC -std=gnu99 $(CFLAGS) -c $*.c -o $*.o
all: dialserver test