It appears that mtd-utils ignores CC. This is a problem when cross-compiling using my "cross-emerge-ng" tool which sets CC to a wrapper script that calls the compiler with the "--sysroot" option. This allows building a complete system into a folder outside of /usr/CHOST. (more info at http://code.google.com/p/ambro-cross-overlay/ ) Reproducible: Always
Created attachment 331618 [details] build log The build fails because zlib.h is not found, because --sysroot is not being passed to the compiler, because CC is being ignored.
Created attachment 331620 [details, diff] mtd-utils-1.5.0.ebuild-cross-compile.patch Fixes passing CC using a make argument.
Could you stop CCing random people OR at the very least give a good reason to do so, please. Thanks.
(In reply to comment #3) > Could you stop CCing random people OR at the very least give a good reason > to do so, please. Thanks. we asked him to cc us, thanks.
code currently relies on $CHOST only
should be all set now in the tree; thanks for the report! Commit message: Respect env AR/CC/RANLIB http://sources.gentoo.org/sys-fs/mtd-utils/mtd-utils-1.5.0.ebuild?r1=1.5&r2=1.6 http://sources.gentoo.org/sys-fs/mtd-utils/mtd-utils-99999999.ebuild?r1=1.10&r2=1.11