if [ "$AVAHI_DAEMON" = yes ]; then
$SCRIPTS/build avahi
SMB_AVAHI="--enable-avahi"
else
SMB_AVAHI="--disable-avahi"
fi
# Fails to compile using the gold linker
CFLAGS=`echo $CFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
# Fails to compile with GCC's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
i Modify the samba build file in (packages/ network/ samba)
add the option
--without- acl-support \
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
if [ "$AVAHI_DAEMON" = yes ]; then "--enable- avahi" "--disable- avahi"
$SCRIPTS/build avahi
SMB_AVAHI=
else
SMB_AVAHI=
fi
# Fails to compile using the gold linker linker- plugin| |" -e "s|-fuse- ld=gold| |"` linker- plugin| |" -e "s|-fuse- ld=gold| |"` linker- plugin| |" -e "s|-fuse- ld=gold| |"`
CFLAGS=`echo $CFLAGS | sed -e "s|-fuse-
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-fuse-
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-
# Fails to compile with GCC's link time optimization. linker- plugin| |"` linker- plugin| |"` linker- plugin| |" -e "s|-fwhole- program| |"`
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-
export samba_cv_ CC_NEGATIVE_ ENUM_VALUES= no
cd $PKG_BUILD/source3
-- build=$ HOST_NAME \
-- prefix= /usr \
-- localstatedir= /var \
-- sysconfdir= /etc \
-- with-configdir= /etc/samba \
-- with-privatedir =/var/run \
-- enable- shared \
-- disable- static \
-- enable- debug \
-- with-fhs \
-- enable- pie \
-- with-pthreads \
-- with-sqlite3 \
-- enable- relro \
-- disable- swat \
-- disable- cups \
$SMB_ AVAHI \
-- without- pam \
-- without- ads \
-- without- libtalloc \
-- without- libtdb \
-- without- libnetapi \
-- without- cifsmount \
-- without- ldap \
-- without- acl-support \
-- with-dnsupdate \
-- with-automount \
-- with-included- popt \
-- with-libsmbclie nt \
-- without- libsmbsharemode s \
-- without- quotas \
-- without- sys-quotas \
-- with-syslog \
./configure --host=$TARGET_NAME \
--with-winbind \
make bin/libsmbclient.so \
bin/smbd
mkdir -p $SYSROOT_ PREFIX/ usr/lib t.so* $SYSROOT_ PREFIX/ usr/lib
cp -PR bin/libsmbclien
mkdir -p $SYSROOT_ PREFIX/ usr/include libsmbclient. h $SYSROOT_ PREFIX/ usr/include
cp include/
mkdir -p $SYSROOT_ PREFIX/ usr/lib/ pkgconfig smbclient. pc $SYSROOT_ PREFIX/ usr/lib/ pkgconfig
cp pkgconfig/