- cleanups
- enable some build options (for tests)
- disable some unused options
This commit is contained in:
Stephan Raue 2010-06-05 08:33:57 +02:00
parent 3adb9b206c
commit 6d3cec1c34
3 changed files with 19 additions and 12 deletions

View File

@ -11,9 +11,9 @@ else
SMB_AVAHI="--disable-avahi" SMB_AVAHI="--disable-avahi"
fi fi
# samba fails to compile with GCC 4.5.0's link time optimization. # Fails to compile with GCC's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"` CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"` 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||"` LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
export samba_cv_CC_NEGATIVE_ENUM_VALUES=no export samba_cv_CC_NEGATIVE_ENUM_VALUES=no
@ -28,20 +28,28 @@ cd $PKG_BUILD/source3
--with-privatedir=/var/run \ --with-privatedir=/var/run \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
--disable-pie \ --enable-debug \
--with-fhs \
--enable-pie \
--with-pthreads \
--with-sqlite3 \
--enable-relro \
--disable-swat \
--disable-cups \ --disable-cups \
$SMB_AVAHI \ $SMB_AVAHI \
--without-pam \ --without-pam \
--without-ads \ --without-ads \
--with-libtalloc \ --without-libtalloc \
--with-libtdb \ --without-libtdb \
--without-libnetapi \ --without-libnetapi \
--without-cifsmount \ --without-cifsmount \
--without-ldap \ --without-ldap \
--without-winbind \ --with-winbind \
--with-dnsupdate \
--with-automount \
--with-included-popt \ --with-included-popt \
--with-libsmbclient \ --with-libsmbclient \
--without-ads \ --without-libsmbsharemodes \
--without-quotas \ --without-quotas \
--without-sys-quotas \ --without-sys-quotas \
--with-syslog \ --with-syslog \
@ -51,8 +59,6 @@ make bin/libsmbclient.so \
mkdir -p $SYSROOT_PREFIX/usr/lib mkdir -p $SYSROOT_PREFIX/usr/lib
cp -PR bin/libsmbclient.so* $SYSROOT_PREFIX/usr/lib cp -PR bin/libsmbclient.so* $SYSROOT_PREFIX/usr/lib
cp -PR bin/libtalloc.so* $SYSROOT_PREFIX/usr/lib
cp -PR bin/libtdb.so* $SYSROOT_PREFIX/usr/lib
mkdir -p $SYSROOT_PREFIX/usr/include mkdir -p $SYSROOT_PREFIX/usr/include
cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include

View File

@ -39,6 +39,8 @@
SMB_ARG="$SMB_ARG --configfile=$SMB_DEFCONF" SMB_ARG="$SMB_ARG --configfile=$SMB_DEFCONF"
fi fi
mkdir -p /var/log/samba
smbd $SMB_ARG > /dev/null 2>&1 smbd $SMB_ARG > /dev/null 2>&1
)& )&

View File

@ -8,8 +8,7 @@ PKG_DIR=`find $PACKAGES -type d -name $1`
mkdir -p $INSTALL/usr/lib mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/source3/bin/libsmbclient.so* $INSTALL/usr/lib cp -P $PKG_BUILD/source3/bin/libsmbclient.so* $INSTALL/usr/lib
cp -P $PKG_BUILD/source3/bin/libtalloc.so* $INSTALL/usr/lib cp -P $PKG_BUILD/source3/bin/libwbclient.so* $INSTALL/usr/lib
cp -P $PKG_BUILD/source3/bin/libtdb.so* $INSTALL/usr/lib
mkdir -p $INSTALL/usr/config mkdir -p $INSTALL/usr/config
cp -P $PKG_DIR/config/samba.conf.sample $INSTALL/usr/config cp -P $PKG_DIR/config/samba.conf.sample $INSTALL/usr/config