--- /usr/portage/net-fs/samba/samba-3.5.19.ebuild 2012-11-08 17:45:10.000000000 +0100 +++ ./usr/local/ambro-cross-overlay/net-fs/samba/samba-3.5.19.ebuild 2012-12-06 02:09:22.797871866 +0100 @@ -152,6 +152,12 @@ has_version ">=dev-libs/iniparser-3.0.0" && \ export CPPFLAGS+=" -Diniparser_getstr\(d,i\)=iniparser_getstring\(d,i,NULL\)" + if tc-is-cross-compiler; then + export samba_cv_CC_NEGATIVE_ENUM_VALUES=yes + export samba_cv_USE_SETREUID=yes + export libreplace_cv_HAVE_SECURE_MKSTEMP=yes + fi + # Notes: # - automount is only needed in conjunction with NIS and we don't have that # anymore => LDAP? @@ -206,7 +212,8 @@ $(use_with winbind) \ --with-shared-modules=${SHAREDMODS} \ --without-included-popt \ - --without-included-iniparser + --without-included-iniparser \ + --with-libiconv="${EROOT}/usr" } src_compile() {