#! /bin/sh # pkg-config wrapper for cross-building # Sets pkg-config search path to search multiarch and historical cross-compiling paths. # If the user has already set PKG_CONFIG_LIBDIR, believe it (even if empty): # it's documented to be an override if [ x"${PKG_CONFIG_LIBDIR+set}" = x ]; then # GNU triplet for the compiler, e.g. i486-linux-gnu for Debian i386, # i686-linux-gnu for Ubuntu i386 basename="$(basename "$0")" triplet="${basename%-pkg-config}" # Normalized multiarch path if any, e.g. i386-linux-gnu for i386 multiarch="$(dpkg-architecture -t"${triplet}" -qDEB_HOST_MULTIARCH 2>/dev/null)" if [ "$?" != 0 ]; then echo "Please install dpkg-dev to use pkg-config when cross-building" >&2 exit 1 fi # Native multiarch path native_multiarch="$(cat /usr/lib/pkg-config.multiarch)" # This can be used for native builds as well, in that case, just exec pkg-config "$@" directly. if [ "$native_multiarch" = "$multiarch" ]; then exec pkg-config "$@" fi PKG_CONFIG_LIBDIR="/usr/local/${triplet}/lib/pkgconfig" # For a native build we would also want to append /usr/local/lib/pkgconfig # at this point; but this is a cross-building script, so don't PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR:/usr/local/share/pkgconfig" if [ -n "$multiarch" ]; then PKG_CONFIG_LIBDIR="/usr/local/lib/${multiarch}/pkgconfig:$PKG_CONFIG_LIBDIR" PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR:/usr/lib/${multiarch}/pkgconfig" fi PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR:/usr/${triplet}/lib/pkgconfig" # For a native build we would also want to append /usr/lib/pkgconfig # at this point; but this is a cross-building script, so don't # If you want to allow use of un-multiarched -dev packages for crossing # (at the risk of finding build-arch stuff you didn't want, if not in a clean chroot) # Uncomment the next line: # PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig" # ... but on Ubuntu we rely cross-building with non-multiarch libraries: if dpkg-vendor --derives-from Ubuntu; then PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR:/usr/lib/pkgconfig" fi PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR:/usr/share/pkgconfig" export PKG_CONFIG_LIBDIR fi exec pkg-config "$@"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
GConf | Folder | 0755 |
|
|
X11 | Folder | 0755 |
|
|
aclocal | Folder | 0755 |
|
|
aclocal-1.16 | Folder | 0755 |
|
|
alsa | Folder | 0755 |
|
|
alsa-card-profile | Folder | 0755 |
|
|
applications | Folder | 0755 |
|
|
apport | Folder | 0755 |
|
|
autoconf | Folder | 0755 |
|
|
automake-1.16 | Folder | 0755 |
|
|
bash-completion | Folder | 0755 |
|
|
binfmts | Folder | 0755 |
|
|
bug | Folder | 0755 |
|
|
build-essential | Folder | 0755 |
|
|
cogl | Folder | 0755 |
|
|
dbus-1 | Folder | 0755 |
|
|
debconf | Folder | 0755 |
|
|
defaults | Folder | 0755 |
|
|
dict | Folder | 0755 |
|
|
dictionaries-common | Folder | 0755 |
|
|
doc-base | Folder | 0755 |
|
|
dpkg | Folder | 0755 |
|
|
drirc.d | Folder | 0755 |
|
|
egl | Folder | 0755 |
|
|
emacsen-common | Folder | 0755 |
|
|
enchant-2 | Folder | 0755 |
|
|
fcitx | Folder | 0755 |
|
|
file | Folder | 0755 |
|
|
fontconfig | Folder | 0755 |
|
|
fonts | Folder | 0755 |
|
|
gcc | Folder | 0755 |
|
|
gdm | Folder | 0755 |
|
|
gettext | Folder | 0755 |
|
|
gettext-0.21 | Folder | 0755 |
|
|
gjs-1.0 | Folder | 0755 |
|
|
glade | Folder | 0755 |
|
|
glib-2.0 | Folder | 0755 |
|
|
glvnd | Folder | 0755 |
|
|
gnome | Folder | 0755 |
|
|
gnome-control-center | Folder | 0755 |
|
|
gst-plugins-base | Folder | 0755 |
|
|
gstreamer-1.0 | Folder | 0755 |
|
|
gtk-3.0 | Folder | 0755 |
|
|
gtk-4.0 | Folder | 0755 |
|
|
gtksourceview-3.0 | Folder | 0755 |
|
|
gtksourceview-5 | Folder | 0755 |
|
|
hunspell | Folder | 0755 |
|
|
icons | Folder | 0755 |
|
|
icu | Folder | 0755 |
|
|
info | Folder | 0755 |
|
|
iso-codes | Folder | 0755 |
|
|
itstool | Folder | 0755 |
|
|
java | Folder | 0755 |
|
|
javascript | Folder | 0755 |
|
|
libc-bin | Folder | 0755 |
|
|
libdrm | Folder | 0755 |
|
|
libgweather-4 | Folder | 0755 |
|
|
libinput | Folder | 0755 |
|
|
libthai | Folder | 0755 |
|
|
libtool | Folder | 0755 |
|
|
libwacom | Folder | 0755 |
|
|
lintian | Folder | 0755 |
|
|
locale | Folder | 0755 |
|
|
locale-langpack | Folder | 0755 |
|
|
lto-disabled-list | Folder | 0755 |
|
|
lzo | Folder | 0755 |
|
|
metainfo | Folder | 0755 |
|
|
mime | Folder | 0755 |
|
|
misc | Folder | 0755 |
|
|
mm-common | Folder | 0755 |
|
|
perl5 | Folder | 0755 |
|
|
pipewire | Folder | 0755 |
|
|
pixmaps | Folder | 0755 |
|
|
pkgconfig | Folder | 0755 |
|
|
polkit-1 | Folder | 0755 |
|
|
presage | Folder | 0755 |
|
|
python-wheels | Folder | 0755 |
|
|
python3 | Folder | 0755 |
|
|
session-migration | Folder | 0755 |
|
|
sgml | Folder | 0755 |
|
|
sounds | Folder | 0755 |
|
|
themes | Folder | 0755 |
|
|
thumbnailers | Folder | 0755 |
|
|
ubuntu | Folder | 0755 |
|
|
ubuntu-wayland | Folder | 0755 |
|
|
upstart | Folder | 0755 |
|
|
wayland | Folder | 0755 |
|
|
wayland-protocols | Folder | 0755 |
|
|
xml | Folder | 0755 |
|
|
zsh | Folder | 0755 |
|
|
File | 0 B | 0 |
|
|
pkg-config-crosswrapper | File | 2.18 KB | 0755 |
|
pkg-config-dpkghook | File | 1.78 KB | 0755 |
|