wget https://download.samba.org/pub/samba/samba-3.6.25.tar.gz
tar -xf samba-3.6.25.tar.gz
cd samba-3.6.25/source3
./autogen
./configure --without-krb5 --without-ldap --without-ads \
--disable-cups --enable-swat=no --with-winbind=no \
--target=arm-hisiv400-linux \
--host=arm-hisiv400-linux \
--prefix= \
--with-configdir=/etc \
samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \
libreplace_cv_HAVE_GETADDRINFO=no \
ac_cv_file__proc_sys_kernel_core_pattern=yes
make
make install DESTDIR=/opt/samba
感谢下面链接作者
https://wiki.beyondlogic.org/index.php/Cross_Compiling_SAMBA_for_ARM