generate_gir: Add the path to the girtarget.

To the scan command.

Otherwise when linking with libtool, the target library was not
found.
pull/139/head
Mathieu Duponchelle 10 years ago
parent d170780b7e
commit a08374b9a9
  1. 1
      modules/gnome.py

@ -105,6 +105,7 @@ class GnomeModule:
if isinstance(girtarget, build.Executable):
scan_command += ['--program', girtarget]
elif isinstance(girtarget, build.SharedLibrary):
scan_command += ["-L", os.path.join (state.environment.get_build_dir(), girtarget.subdir)]
libname = girtarget.get_basename()
if girtarget.soversion:
libname += "-%s" % girtarget.soversion

Loading…
Cancel
Save