Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Revert "fix bug#605156 by ordering libtool archives that may pull in …
Browse files Browse the repository at this point in the history
…system"

This reverts commit e14bdeb.  While
that commit fixed things in some cases, it broke others.  I think the
problem people are running into here that we actually need the library
path order to be:

.:$BUILD_ROOT:/usr

Ensure that the middle happens by explicitly calling pkg-config.

https://bugzilla.gnome.org/show_bug.cgi?id=605156
  • Loading branch information
cgwalters committed Jun 28, 2010
1 parent 567cc58 commit 8c48a31
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions giscanner/dumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,12 @@ def _link(self, output, *sources):
# Search the current directory first
args.append('-L.')

libtool_args = []
uninst_builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
if not uninst_builddir:
proc = subprocess.Popen([self._pkgconfig_cmd, '--libs',
'gobject-introspection-1.0'],
stdout=subprocess.PIPE)
args.extend(proc.communicate()[0].split())
# hack for building GIRepository.gir, skip -lgirepository-1.0 since
# libgirepository-1.0.la is not in current directory and we refer to it
# explicitly below anyway
Expand All @@ -207,7 +211,7 @@ def _link(self, output, *sources):
self._options.libraries[0] == 'girepository-1.0'):
continue
if library.endswith(".la"): # explicitly specified libtool library
libtool_args.append(library)
args.append(library)
else:
args.append('-l' + library)

Expand All @@ -222,8 +226,6 @@ def _link(self, output, *sources):
if not os.path.exists(source):
raise CompilerError(
"Could not find object file: %s" % (source, ))
# need to be late - cf. bug#605156
args.extend(libtool_args)
args.extend(list(sources))

subprocess.check_call(args)
Expand Down

0 comments on commit 8c48a31

Please sign in to comment.