- make avahi support optional
- dont build with pam support
This commit is contained in:
Stephan Raue 2010-06-03 16:52:18 +02:00
parent 5747490818
commit 5826daa8b8
2 changed files with 10 additions and 3 deletions

View File

@ -3,7 +3,13 @@
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build avahi
if [ "$AVAHI_DAEMON" = yes ]; then
$SCRIPTS/build avahi
SMB_AVAHI="--enable-avahi"
else
SMB_AVAHI="--disable-avahi"
fi
# samba fails to compile with GCC 4.5.0's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
@ -24,7 +30,8 @@ cd $PKG_BUILD/source3
--disable-static \
--disable-pie \
--disable-cups \
--enable-avahi \
$SMB_AVAHI \
--without-pam \
--without-ads \
--with-libtalloc \
--with-libtdb \

View File

@ -2,7 +2,7 @@
. config/options
$SCRIPTS/install avahi
[ "$AVAHI_DAEMON" = yes ] && $SCRIPTS/install avahi
PKG_DIR=`find $PACKAGES -type d -name $1`