From bbc5c2544579419537b9396d720b907079eaca7a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 20 May 2021 04:02:37 +0000 Subject: [PATCH] debian: make sure CC variable is passed through to the build See also https://github.com/bvanassche/scst/pull/37. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9426 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 2 +- debian/rules | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8becf0947..36545d500 100644 --- a/Makefile +++ b/Makefile @@ -391,7 +391,7 @@ dpkg: ../scst_$(VERSION).orig.tar.gz else \ buildopts+=(-j4); \ fi && \ - DEB_KVER_SET=$(KVER) DEB_KDIR_SET=$(KDIR) debuild "$${buildopts[@]}" --lintian-opts --profile debian && \ + DEB_CC_SET="$(CC)" DEB_KVER_SET=$(KVER) DEB_KDIR_SET=$(KDIR) debuild "$${buildopts[@]}" --lintian-opts --profile debian && \ mkdir -p dpkg && \ for f in "$${output_files[@]}" ../scst_$(VERSION).orig.tar.[gx]z; do\ mv $$f dpkg || true; \ diff --git a/debian/rules b/debian/rules index af061fb37..efd2cf134 100755 --- a/debian/rules +++ b/debian/rules @@ -21,6 +21,7 @@ VERSION:=$(shell head -n1 debian/changelog | sed 's/.*(\([0-9.]*\).*).*/\1/') # an intermediary. Also, export variables for sub-makes to be able to see them. export KVER=$(DEB_KVER_SET) export KDIR=$(DEB_KDIR_SET) +export CC=$(DEB_CC_SET) %: echo "*** dh $@ ***"