Browse Source

build: Pass CC to the test suite

If the build system does not have gcc available, the Dpkg::Arch module
requires the CC environment variable to be set so that we can detect
the host system.
Guillem Jover 9 years ago
parent
commit
1efac5a7b3
2 changed files with 2 additions and 0 deletions
  1. 1 0
      check.am
  2. 1 0
      debian/changelog

+ 1 - 0
check.am

@@ -29,6 +29,7 @@ check-local: $(test_data) $(test_programs) $(test_scripts)
 	  LC_ALL=C \
 	  $(TEST_ENV_VARS) \
 	  srcdir=$(srcdir) builddir=$(builddir) \
+	  CC=$(CC) \
 	  PERL_DL_NONLAZY=1 \
 	  PERL5OPT=$(TEST_COVERAGE) \
 	  $(PERL) -MTAP::Harness -e $(TEST_RUNNER) \

+ 1 - 0
debian/changelog

@@ -109,6 +109,7 @@ dpkg (1.18.0) UNRELEASED; urgency=low
       build failure on uclibc based systems. Closes: #777044
       Based on a patch by Alex Potapenko <opotapenko@gmail.com>.
     - Use single suffix rules instead of non-portable %-pattern rules.
+    - Pass CC to the test suite, so that we can use a non-gcc compiler.
   * Packaging:
     - Remove old trigger related Breaks and Conflicts from dpkg.
     - Only use stackprotectorstrong when building dpkg with gcc >= 4.9.