added -fPIC to satisfy X86_64 build
authorEdouard Tisserant
Wed, 16 Nov 2011 17:47:13 +0100
changeset 635 fcdb60cacb2c
parent 634 5b925a1d8fed
child 636 35c59bfc54f2
added -fPIC to satisfy X86_64 build
targets/Linux/__init__.py
targets/Xenomai/__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"]
--- 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"]