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

Rudá Moura ruda.moura at gmail.com
Sun Nov 8 06:33:54 PST 2015


This proposed patch correctly build pkg-config with option
--with-included-glib enabled on Darwin.

Darwin (OS X) requires Carbon and CoreFoundation frameworks linked,
otherwise
there will be missing symbols:

Undefined symbols for architecture x86_64:
  "_CFRelease", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFStringGetCString", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFStringGetCStringPtr", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFStringGetLength", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFURLCopyFileSystemPath", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_CFURLCreateFromFSRef", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_FSFindFolder", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o)
  "_kCFAllocatorSystemDefault", referenced from:
      _find_folder in libglib-2.0.a(libglib_2_0_la-gutils.o

-- 
Rudá Moura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20151108/d259f55c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-configure.ac-Fix-GLIB_LIBS-linking-flags-for-Darwin-.patch
Type: application/octet-stream
Size: 1128 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pkg-config/attachments/20151108/d259f55c/attachment.obj>


More information about the pkg-config mailing list