Fix build with --with-included-glib on Darwin

Adam Mercer ramercer at gmail.com
Tue Mar 1 03:42:41 UTC 2016


On Mon, Feb 29, 2016 at 5:58 PM, Dan Nicholson <nicholson at endlessm.com> wrote:

> I don't really want to carry a separate platform check in pkg-config's
> configure, so I wonder if you could see if the attached patch fixes
> things.

Looks like that does the trick, it builds with that patch applied.

> Could you show the contents of glib/glib/libglib-2.0.la in
> both cases?

With the patch glib/glib/libglib-2.0.la is:

[ram at hastur pkg-config]$ cat glib/glib/libglib-2.0.la
# libglib-2.0.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.6
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='libglib-2.0.a'

# Linker flags that cannot go in dependency_libs.
inherited_linker_flags='  -framework Carbon -framework Foundation'

# Libraries that this one depends upon.
dependency_libs=' -liconv'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libglib-2.0.
current=
age=
revision=

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir=''
[ram at hastur pkg-config]$

and then without it is:

[ram at hastur pkg-config]$ cat glib/glib/libglib-2.0.la
# libglib-2.0.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.6
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names=''

# The name of the static archive.
old_library='libglib-2.0.a'

# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=' '

# Libraries that this one depends upon.
dependency_libs=' -liconv'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libglib-2.0.
current=
age=
revision=

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir=''
[ram at hastur pkg-config]$

Cheers

Adam


More information about the pkg-config mailing list