# HG changeset patch
# User Edouard Tisserant
# Date 1321462033 -3600
# Node ID fcdb60cacb2c00907418046404b712a0acf6f3fe
# Parent  5b925a1d8fed0a7f426b47399a4fe3439d023b3a
added -fPIC to satisfy X86_64 build

diff -r 5b925a1d8fed -r fcdb60cacb2c targets/Linux/__init__.py
--- a/targets/Linux/__init__.py	Wed Nov 16 17:12:16 2011 +0100
+++ b/targets/Linux/__init__.py	Wed Nov 16 17:47:13 2011 +0100
@@ -2,5 +2,7 @@
 
 class Linux_target(toolchain_gcc):
     extension = ".so"
+    def getBuilderCFLAGS(self):
+        return toolchain_gcc.getBuilderCFLAGS(self) + ["-fPIC"]
     def getBuilderLDFLAGS(self):
         return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-lrt"]
diff -r 5b925a1d8fed -r fcdb60cacb2c targets/Xenomai/__init__.py
--- a/targets/Xenomai/__init__.py	Wed Nov 16 17:12:16 2011 +0100
+++ b/targets/Xenomai/__init__.py	Wed Nov 16 17:47:13 2011 +0100
@@ -21,5 +21,5 @@
 
     def getBuilderCFLAGS(self):
         xeno_cflags = self.getXenoConfig("cflags")
-        return toolchain_gcc.getBuilderCFLAGS(self) + xeno_cflags
+        return toolchain_gcc.getBuilderCFLAGS(self) + xeno_cflags + ["-fPIC"]