Commit 1714826fa08ad8612b720c8fdea636a4fc49c480

Vicent Marti 2010-11-04T01:08:36

Force PIC on the Makefile Added -fPIC (position-independent code) to the EXTRA_CFLAGS var in the Makefile. Required in x64 when building the shared library. Signed-off-by: Vicent Marti <tanoku@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Makefile b/Makefile
index ab56850..858f181 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ OS     = unix
 
 EXTRA_SRC =
 EXTRA_OBJ =
-EXTRA_CFLAGS =
+EXTRA_CFLAGS = -fPIC
 
 AR_OUT=
 CC_OUT=-o # add a space