[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#930983: libpam-encfs FTCBFS: builds for the wrong architecture



On Mon, Jun 24, 2019 at 10:25:11AM +0700, Nguyen Hoang Tung wrote:
> libpam-encfs fails to cross build because it does not pass cross build tools
> to make. Adding /usr/share/dpkg/buildtools.mk, using "dh_auto_build" instead
> of "$(MAKE) and re-defining the linkers and the compilers can solve this
> problem.

If you include (not -include) buildtools.mk, you must add a versioned
dependency on dpkg-dev (>= 1.19.0). Passing CC should be redundant here
as dh_auto_build should pass it already. For the LD assignment you can
use the previous assignment from dh_auto_build like this:

    dh_auto_build -- 'LD=$$(CC)' ...

This way of quoting causes the expansion to happen in the child make, so
you don't actually have to include buildtools.mk in debian/rules. I'm
not sure whether the delayed expansion is simpler, but it avoids the
extra dependency. Either way works.

Helmut


Reply to: