xref: /DragonOS/user/port/pkg-config.sh (revision 338f6903262c5031abad3c8e361813355a27fcdb)
1#!/bin/sh
2# Fill these in appropriately:
3ROOT_PATH=$(dirname $(dirname $(pwd)))
4DRAGONOS_SYSROOT=$ROOT_PATH/bin/sysroot
5
6
7
8export PKG_CONFIG_SYSROOT_DIR=$DRAGONOS_SYSROOT
9export PKG_CONFIG_LIBDIR=$DRAGONOS_SYSROOT/usr/lib/pkgconfig
10# TODO: If it works this should probably just be set to the empty string.
11# export PKG_CONFIG_PATH=$PKG_CONFIG_LIBDIR
12# Use --static here if your OS only has static linking.
13# TODO: Perhaps it's a bug in the libraries if their pkg-config files doesn't
14#       record that only static libraries were built.
15# exec pkg-config --static "$@"