add -fPIC flag (it's needed when compiling on Linux)
This commit is contained in:
parent
e49ddbd13b
commit
e28d9e3b71
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue