Fix assortment of compilation issues and annoyances

This commit is contained in:
rdb
2015-02-08 20:21:14 +01:00
parent 91568b02bc
commit bd86907181
33 changed files with 286 additions and 143 deletions
+4
View File
@@ -1518,6 +1518,10 @@ def CompileLink(dll, obj, opts):
else:
cmd = cxx + ' -shared'
if ("MODULE" not in opts): cmd += " -Wl,-soname=" + os.path.basename(dll)
if GetOrigExt(dll) == ".pyd" and not os.path.basename(dll).startswith('core'):
# Tell the other libraries where to find core.so.
# Not sure if this is the best way to do that, but it works.
cmd += " -Wl,-rpath '-Wl,$ORIGIN'"
cmd += ' -o ' + dll + ' -L' + GetOutputDir() + '/lib -L' + GetOutputDir() + '/tmp'
for x in obj: