Fix for 64-bit PL: shared object compilation must be done with -fPIC
authorClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Thu, 12 May 2011 14:37:44 +0000 (16:37 +0200)
committerClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Thu, 12 May 2011 14:37:44 +0000 (16:37 +0200)
src/nepi/testbeds/planetlab/tunproto.py

index 6427253..af724f6 100644 (file)
@@ -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 && "