add -fPIC flag (it's needed when compiling on Linux)

This commit is contained in:
Yuichi Nishiwaki 2013-11-21 02:55:08 -08:00
parent e49ddbd13b
commit e28d9e3b71
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ build-lib:
cd src; \
yacc -d parse.y; \
flex scan.l
$(CC) $(CFLAGS) -shared src/*.c -o lib/$(PICRIN_LIB) -I./include -I./extlib -lm
$(CC) $(CFLAGS) -shared -fPIC src/*.c -o lib/$(PICRIN_LIB) -I./include -I./extlib -lm
clean:
rm -f src/y.tab.c src/y.tab.h src/lex.yy.c