--- pam-1.0.3.ebuild 2008-12-10 05:37:32.000000000 -0500 +++ pam-1.0.3.ebuild 2009-02-24 22:33:15.000000000 -0500 @@ -145,6 +145,15 @@ src_compile() { --disable-prelude \ --disable-regenerate-man \ ${myconf} || die "econf failed" + + # If cross-compiling, then build padout with the host CC + # See #206166 + if tc-is-cross-compiler; then + cd "${S}"/doc/specs + emake CC="$(tc-getBUILD_CC)" \ + CFLAGS="" LDFLAGS="" padout || die "Native padout build failed" + fi + emake sepermitlockdir="/var/run/sepermit" || die "emake failed" }