Commit fee4c4255004c1f142e39d6884a4804eb38e3183

Vicent Marti 2011-04-16T01:58:43

Force position independent code in Linux

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/wscript b/wscript
index f0b81a0..d97538a 100644
--- a/wscript
+++ b/wscript
@@ -4,7 +4,7 @@ from waflib.Build import BuildContext, CleanContext, \
         InstallContext, UninstallContext
 
 # Unix flags
-CFLAGS_UNIX = ["-O2", "-Wall", "-Wextra"]
+CFLAGS_UNIX = ["-O2", "-Wall", "-Wextra", "-fPIC"]
 CFLAGS_UNIX_DBG = ['-g', '-O0']
 
 # Windows MSVC flags