Control: reopen -1

On Mon, Sep 03, 2018 at 01:09:08AM +0000, Debian Bug Tracking System wrote:
>    * More FTCBFS patches.
>      Thanks to Helmut Grohne for the patches. (Closes: 903319)

Thank you for applying the patch, but without setting CC_FOR_BUILD it
does nothing (intentionally).

I wrote:
> Then it fails running hexdump.exe. That's due to building hexdump.exe
> with the host architecture compiler (called $(CC)) rather than the build
> architecture compiler (often called $(CC_FOR_BUILD) or $(BUILD_CC)). The
> next patch ccforbuild.patch adds a new variable CC_FOR_BUILD and
> defaults it to $(CC). It then makes hexdump.exe and namedump.exe use
> $(CC_FOR_BUILD). In order to properly support it from Debian you also
> need to set up this variable as the $(CC) default is again the host
> architecture compiler. Exporting CC_FOR_BUILD=cc is enough.
> Alternatively, letting /usr/share/dpkg/buildtools.mk supply it works as
> well. This patch also looks like something upstream could reasonably
> maintain, but they may have a preference on the variable name.

You have a number of options here:

export CC_FOR_BUILD=cc

or

include /usr/share/dpkg/buildtools.mk
export CC_FOR_BUILD ?= cc

or

set CC_FOR_BUILD=CC via your BUILD_FLAGS

but without any setting, the patch does nothing.

Helmut

Reply via email to