From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 28 Sep 2015 06:23:11 -0700 (PDT) From: Pierre Bourgin To: voidlinux Message-Id: <4fd02ca7-4f36-4922-b1df-fc1feb2f782a@googlegroups.com> In-Reply-To: <37fc60eb-e234-4368-864c-c34b1de47398@googlegroups.com> References: <97986a39-c845-4ab9-b011-51e39102c8ca@googlegroups.com> <37fc60eb-e234-4368-864c-c34b1de47398@googlegroups.com> Subject: Re: xbps-src: lost in cross-build, aka on makedepends vs hostmakedepends MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_123_256345649.1443446592060" ------=_Part_123_256345649.1443446592060 Content-Type: multipart/alternative; boundary="----=_Part_124_1210375898.1443446592060" ------=_Part_124_1210375898.1443446592060 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sorry, I missed your previous post before asking ... Thanks for sharing your knowledge ! If I understand well regarding your example, *cmake* has to be *only* in *hostmakedepends* (and not makedepends) for cross-compiling on x86_64 for armv7 arch. If not, I mean if cmake was listed in makedepends: call of cmake won't work, because its runtime will be an armv7 binary then, that can't be runned on x86_64 arch (which is cross-compiling). So the rule for cross-building is: all stuff that need to be runtimed/executed during the build process (and not only linked/generated) has to be in *hostmakedepends* in order to have the right binary platform type (native and not cross-target architecture). right ? ------=_Part_124_1210375898.1443446592060 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Sorry, I missed your previous post before asking ...
Thanks for sharing your knowledge !

If I understand well regarding your example, cmake has to be only in hostmakedepends (and not makedepends) for cross-compiling on x86_64 for armv7 arch.

If not, I mean if cmake was listed in makedepends:
call of cmake won't work, because its runtime will be an armv7 binary then, that can't be runned on x86_64 arch (which is cross-compiling).

So the rule for cross-building is:
all stuff that need to be runtimed/executed during the build process (and not only linked/generated) has to be in hostmakedepends in order to have the right binary platform type (native and not cross-target architecture).

right ?
------=_Part_124_1210375898.1443446592060-- ------=_Part_123_256345649.1443446592060--