kumquat-buildroot/package/postgresql/pg_config
Floris Bos a9dbaa7726 postgresql: add replacement pg_config
Normally pg_config is a native application compiled for the
target architecture. Since we cannot execute those on the
host system, provide a simple shell script as replacement.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-08-17 21:18:09 +02:00

20 lines
305 B
Bash

#!/bin/sh
#
# Minimal pg_config implementation as replacement for the native pg_config application
# Only implements --includedir and --libdir
#
prefix=/usr
case "$1" in
--includedir)
echo "$prefix/include"
;;
--libdir)
echo "$prefix/lib"
;;
*)
echo "Usage: $0 {--includedir|--libdir}"
esac