From: Claudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Date: Thu, 12 May 2011 14:37:44 +0000 (+0200)
Subject: Fix for 64-bit PL: shared object compilation must be done with -fPIC
X-Git-Tag: nepi_v2~43
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bf664f0f2d7677b2dcef33be2947e59cf6f13728;p=nepi.git

Fix for 64-bit PL: shared object compilation must be done with -fPIC
---

diff --git a/src/nepi/testbeds/planetlab/tunproto.py b/src/nepi/testbeds/planetlab/tunproto.py
index 64272532..af724f6a 100644
--- a/src/nepi/testbeds/planetlab/tunproto.py
+++ b/src/nepi/testbeds/planetlab/tunproto.py
@@ -82,7 +82,7 @@ class TunProtoBase(object):
             raise RuntimeError, "Failed upload TUN connect script %r: %s %s" % (source, out,err,)
 
         cmd = ( (
-            "cd %(home)s && gcc -shared tunalloc.c -o tunalloc.so"
+            "cd %(home)s && gcc -fPIC -shared tunalloc.c -o tunalloc.so"
             + ( " && "
                 "wget -q -c -O python-passfd-src.tar.gz %(passfd_url)s && "
                 "mkdir -p python-passfd && "