summaryrefslogtreecommitdiffstats
path: root/package/postgresql/pg_config
diff options
context:
space:
mode:
authorFloris Bos <bos@je-eigen-domein.nl>2014-08-13 15:57:09 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-17 21:18:09 +0200
commita9dbaa77263f545f3af5fce0276b3e34dbc467d5 (patch)
treed29ec435b81501edb89e09582f4cc1ae04b500d8 /package/postgresql/pg_config
parentac7e0a5d0dc23d453c753ddaf56007fcd47a0a77 (diff)
downloadbuildroot-a9dbaa77263f545f3af5fce0276b3e34dbc467d5.tar.gz
buildroot-a9dbaa77263f545f3af5fce0276b3e34dbc467d5.zip
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>
Diffstat (limited to 'package/postgresql/pg_config')
-rw-r--r--package/postgresql/pg_config19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/postgresql/pg_config b/package/postgresql/pg_config
new file mode 100644
index 0000000000..85c0e63ddb
--- /dev/null
+++ b/package/postgresql/pg_config
@@ -0,0 +1,19 @@
+#!/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
OpenPOWER on IntegriCloud