dev-util/pkgconfig: add necessary frameworks for Darwin
authorFabian Groffen <grobian@gentoo.org>
Fri, 22 Jan 2016 17:39:48 +0000 (18:39 +0100)
committerFabian Groffen <grobian@gentoo.org>
Fri, 22 Jan 2016 17:48:14 +0000 (18:48 +0100)
Package-Manager: portage-2.2.20-prefix

dev-util/pkgconfig/pkgconfig-0.29.ebuild

index 04c55012806c536273c1c4ebd62c3c221d55b3a4..987e3b7b1ad16cf79b325f3c93e6879af9fc4e69 100644 (file)
@@ -63,6 +63,10 @@ multilib_src_configure() {
                        # add the libdir for libtool, otherwise it'll make love with system
                        # installed libiconv
                        append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
+                       # the glib objects reference symbols from these frameworks,
+                       # not good, esp. since Carbon should be deprecated
+                       [[ ${CHOST} == *-darwin* ]] && \
+                               append-ldflags -framework CoreFoundation -framework Carbon
                fi
        else
                if ! has_version dev-util/pkgconfig; then