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

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



On Tue, Jun 25, 2019 at 06:30:49AM +0200, Helmut Grohne wrote:
> 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)' ...

Hi, Helmut

Thanks for the info. 

Upstream Makefile sets CC=gcc and LD=ld (this seems to need ld). Will
values passed by dh_auto_build override them? IIRC overriding them was the
reason for passing those variables as arguments.

Regards,

-- 
Agustin


Reply to: