On 2014-09-23 12:03, Helmut Grohne wrote: > Your -5 upload broke cross building, while -4 worked just fine. libcap2 > now compiles everything with "cc" rather than a triplet-prefixed > compiler. Can you revert or fix the relevant changes? > > Looking at the debdiff I suspect the following hunk as offending: > > | -ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) > | -CC := gcc > | -else > | -CC := $(DEB_HOST_GNU_TYPE)-gcc > | +# Support cross-compiling > | +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) > | +CC ?= $(DEB_HOST_GNU_TYPE)-gcc > | endif > > Observe that the CC variable is special in make. It has a default value, > so assinging to CC with ?= is always a noop. While not setting CC in the > non-cross case is an improvement for building with clang, in a cross > setting it needs to be set with := for now.
Strange, I was aware that make sets a default but I thought I had verified this to not be an issue in my tests. (My motivation, btw, was indeed to be nicer to other compilers.) I'll prepare a fix using := again. Thanks, Christian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org