From e28d9e3b71c2062828d62186132b11e6b7bd0de7 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 21 Nov 2013 02:55:08 -0800 Subject: [PATCH] add -fPIC flag (it's needed when compiling on Linux) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4595608e..18e4b573 100644 --- a/Makefile +++ b/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