summaryrefslogtreecommitdiff
path: root/giscanner/dumper.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-11-03 20:33:53 -0400
committerColin Walters <walters@verbum.org>2011-11-03 20:33:53 -0400
commit72d5fe5a2794c435b750b347b7584841611f1cb7 (patch)
treef70ded574aee1cc1e9dc92aa34c1ffe3230b2e36 /giscanner/dumper.py
parente33482ba5e4f854a56a22c966a1f6ea1c46e3bbb (diff)
downloadgobject-introspection-72d5fe5a2794c435b750b347b7584841611f1cb7.tar.gz
scanner: Only add rpaths for absolute directories
We shouldn't do it for module-internal paths, since it can't work and is unnecessary even if it did.
Diffstat (limited to 'giscanner/dumper.py')
-rw-r--r--giscanner/dumper.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 3645d4ce..0c490227 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -277,11 +277,12 @@ class DumpCompiler(object):
for library_path in self._options.library_paths:
args.append('-L' + library_path)
- if libtool:
- args.append('-rpath')
- args.append(library_path)
- else:
- args.append('-Wl,-rpath=' + library_path)
+ if os.path.isabs(library_path):
+ if libtool:
+ args.append('-rpath')
+ args.append(library_path)
+ else:
+ args.append('-Wl,-rpath=' + library_path)
args.extend(self._run_pkgconfig('--libs'))