Skip to content
Snippets Groups Projects
Commit c32ca637 authored by Christoph Berg's avatar Christoph Berg :satellite:
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
No related branches found
No related tags found
No related merge requests found
Pipeline #17077 failed
......@@ -6,6 +6,9 @@ postgresql-common (193) UNRELEASED; urgency=medium
[ Christoph Berg ]
* 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
......
......@@ -50,6 +50,9 @@ prepare_env() {
vtarget=`echo $target | sed -e "s:%v:$version:g"`
pgc="/usr/lib/postgresql/$version/bin/pg_config"
[ -e "$pgc" ] || die "$pgc does not exist"
if [ "$CFLAGS" ]; then
export COPT="$CFLAGS"
fi
}
configure() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment