Commit b662ff50 authored by Christoph Berg's avatar Christoph Berg

pg_buildext: Set USE_PGXS=1.

parent aec51e97
......@@ -24,6 +24,7 @@ postgresql-common (140) UNRELEASED; urgency=low
* t/030_errors.t: Adjust testsuite for this.
* debian/supported-versions: Handle unset variables from /etc/os-release
gracefully. Spotted by x4rlos on #postgresql.
* pg_buildext: Set USE_PGXS=1.
-- Christoph Berg <myon@debian.org> Mon, 07 Jan 2013 17:08:00 +0100
......
......@@ -21,7 +21,7 @@ prepare_env() {
version=$1
vtarget=`echo $target | sed -e "s:%v:$version:g"`
pgc="/usr/lib/postgresql/$version/bin/pg_config"
[ -e "$pgc" ] || die "$pgc does not exists"
[ -e "$pgc" ] || die "$pgc does not exist"
}
configure() {
......@@ -40,7 +40,7 @@ build() {
mkdir -p $vtarget
# if a Makefile was created by configure, use it, else the top level Makefile
[ -f $vtarget/Makefile ] || makefile="-f $srcdir/Makefile"
make -C $vtarget $makefile CFLAGS="$cflags" DESTDIR="$srcdir/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir"
make -C $vtarget $makefile CFLAGS="$cflags" DESTDIR="$srcdir/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir" USE_PGXS=1
}
install() {
......@@ -50,7 +50,7 @@ install() {
mkdir -p $vtarget
# if a Makefile was created by configure, use it, else the top level Makefile
[ -f $vtarget/Makefile ] || makefile="-f $srcdir/Makefile"
make -C $vtarget $makefile install DESTDIR="$srcdir/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir"
make -C $vtarget $makefile install DESTDIR="$srcdir/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir" USE_PGXS=1
}
clean() {
......@@ -58,7 +58,7 @@ clean() {
# if a Makefile was created by configure, use it, else the top level Makefile
[ -f $vtarget/Makefile ] || makefile="-f $srcdir/Makefile"
[ -d $vtarget ] && make -C $vtarget clean $makefile DESTDIR="$srcdir/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir"
[ -d $vtarget ] && make -C $vtarget clean $makefile DESTDIR="$srcdir/debian/$package" PG_CONFIG="$pgc" VPATH="$srcdir" USE_PGXS=1
rm -rf $vtarget
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment