diff options
author | Colin Watson <cjwatson@debian.org> | 2020-05-27 09:27:47 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-05-27 09:27:47 +0100 |
commit | e8372e8165e30d921bb987a349a8c50a45bf3e1c (patch) | |
tree | ecfa45560de77c886ea687aeb283f8aaae3023e8 | |
parent | 27fd39a8aa267abbcf321ff8d1005f8e0cf03349 (diff) |
Use dpkg-buildflags when building regression tests
-rwxr-xr-x | debian/run-regression-tests.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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() { | |||
15 | 15 | ||
16 | trap cleanup 0 INT QUIT ABRT PIPE TERM | 16 | trap cleanup 0 INT QUIT ABRT PIPE TERM |
17 | 17 | ||
18 | eval "$(dpkg-buildflags --export=sh)" | ||
19 | export CFLAGS="$CFLAGS $CPPFLAGS" | ||
20 | export CXXFLAGS="$CFLAGS $CXXFLAGS" | ||
21 | |||
18 | # regress/ tests are only included when the build type is set to Debug, so | 22 | # regress/ tests are only included when the build type is set to Debug, so |
19 | # we build it again in a separate directory as we don't want a Debug build | 23 | # we build it again in a separate directory as we don't want a Debug build |
20 | # in the shipped packages | 24 | # in the shipped packages |