>From 8995639386afd874a09ca78204bf0a5d90f4dd55 Mon Sep 17 00:00:00 2001 From: foka Date: Fri, 3 Apr 2015 16:50:32 +0200 Subject: [PATCH] Fix _pysimulavr build. To be able to link _pysimulavr.so all object files should be build using -fPIC. This is already done by libtool, wich creates pic and non pic object. This patch provides pic objects to python build instead of non pic. --- src/python/setup.py.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python/setup.py.in b/src/python/setup.py.in index 0197dc4..484d4b5 100644 --- a/src/python/setup.py.in +++ b/src/python/setup.py.in @@ -21,6 +21,8 @@ if objs_str is None: sys.exit(1) else: for name in objs_str.strip().split(): + dirname = os.path.dirname(name); + name = dirname + "/.libs/" + os.path.basename(name); name = os.path.splitext(name)[0] ext_objs.append("../" + name + ".o") -- 2.1.0