From e8372e8165e30d921bb987a349a8c50a45bf3e1c Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 27 May 2020 09:27:47 +0100 Subject: Use dpkg-buildflags when building regression tests --- debian/run-regression-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/run-regression-tests.sh b/debian/run-regression-tests.sh index 2271e5e..1ce5bf8 100755 --- a/debian/run-regression-tests.sh +++ b/debian/run-regression-tests.sh @@ -15,6 +15,10 @@ cleanup() { trap cleanup 0 INT QUIT ABRT PIPE TERM +eval "$(dpkg-buildflags --export=sh)" +export CFLAGS="$CFLAGS $CPPFLAGS" +export CXXFLAGS="$CFLAGS $CXXFLAGS" + # regress/ tests are only included when the build type is set to Debug, so # we build it again in a separate directory as we don't want a Debug build # in the shipped packages -- cgit v1.2.3