Commit c32ca637 authored by Christoph Berg's avatar Christoph Berg
Browse files

pg_buildext: Copy CFLAGS from environment to COPT

pg_buildext: Copy CFLAGS from environment to COPT so Makefile.global picks it
up. Notably this will make extension builds use -f{debug,file}-prefix-map from
dpkg-buildflags.
parent c6efff9f
Pipeline #17077 failed with stage
in 7 minutes and 56 seconds
...@@ -6,6 +6,9 @@ postgresql-common (193) UNRELEASED; urgency=medium ...@@ -6,6 +6,9 @@ postgresql-common (193) UNRELEASED; urgency=medium
[ Christoph Berg ] [ Christoph Berg ]
* pg_buildext: Stop passing srcdir to make invocations. * pg_buildext: Stop passing srcdir to make invocations.
* pg_buildext: Copy CFLAGS from environment to COPT so Makefile.global
picks it up. Notably this will make extension builds use
-f{debug,file}-prefix-map from dpkg-buildflags.
-- Christoph Berg <myon@debian.org> Wed, 15 Aug 2018 17:59:38 +0200 -- Christoph Berg <myon@debian.org> Wed, 15 Aug 2018 17:59:38 +0200
......
...@@ -50,6 +50,9 @@ prepare_env() { ...@@ -50,6 +50,9 @@ prepare_env() {
vtarget=`echo $target | sed -e "s:%v:$version:g"` vtarget=`echo $target | sed -e "s:%v:$version:g"`
pgc="/usr/lib/postgresql/$version/bin/pg_config" pgc="/usr/lib/postgresql/$version/bin/pg_config"
[ -e "$pgc" ] || die "$pgc does not exist" [ -e "$pgc" ] || die "$pgc does not exist"
if [ "$CFLAGS" ]; then
export COPT="$CFLAGS"
fi
} }
configure() { configure() {
......
Supports Markdown
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