Append -Wl,-rpath=. to the scanner compile
authorRyan Lortie <desrt@desrt.ca>
Tue, 27 Jul 2010 21:29:21 +0000 (23:29 +0200)
committerRyan Lortie <desrt@desrt.ca>
Tue, 27 Jul 2010 21:30:47 +0000 (23:30 +0200)
This is required if we're not using libtool

giscanner/dumper.py

index b61e388..b503bf1 100644 (file)
@@ -200,6 +200,10 @@ class DumpCompiler(object):
         # Search the current directory first
         args.append('-L.')
 
+        # https://bugzilla.gnome.org/show_bug.cgi?id=625195
+        if not libtool:
+          args.append('-Wl,-rpath=.')
+
         uninst_builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
         if not uninst_builddir:
             proc = subprocess.Popen([self._pkgconfig_cmd, '--libs',