It is the pkgconfig in / that is used for building. While it is
unlikely to be missing when cross-compiling, technically the forced
GLIB_CFLAGS should be prefixed with SYSROOT. Let's revisit that in
EAPI 7.
Package-Manager: Portage-2.3.13, Repoman-2.3.4
append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
fi
else
- if ! has_version dev-util/pkgconfig; then
+ if ! has_version --host-root dev-util/pkgconfig; then
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
fi
append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
fi
else
- if ! has_version dev-util/pkgconfig; then
+ if ! has_version --host-root dev-util/pkgconfig; then
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
fi
fi
fi
else
- if ! has_version dev-util/pkgconfig; then
+ if ! has_version --host-root dev-util/pkgconfig; then
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
fi
fi
fi
else
- if ! has_version dev-util/pkgconfig; then
+ if ! has_version --host-root dev-util/pkgconfig; then
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
fi
fi
fi
else
- if ! has_version dev-util/pkgconfig; then
+ if ! has_version --host-root dev-util/pkgconfig; then
export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
fi