pkg-config.sh 569 B

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