mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
samba: build libsmbclient as shared lib
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
4b003c2ed9
commit
04dcb1c43e
@ -181,7 +181,6 @@ fi
|
||||
|
||||
if [ "$SAMBA_CLIENT" = yes ]; then
|
||||
XBMC_SAMBA="--enable-samba"
|
||||
export LIBS="$LIBS -ltalloc -ltdb -lwbclient"
|
||||
else
|
||||
XBMC_SAMBA="--disable-samba"
|
||||
fi
|
||||
|
@ -22,8 +22,6 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
CFLAGS="$CFLAGS -fPIC -DPIC"
|
||||
|
||||
cd $PKG_BUILD/source3
|
||||
|
||||
sh autogen.sh
|
||||
@ -57,7 +55,7 @@ samba_cv_have_setresuid=yes \
|
||||
--with-piddir=/var/run \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-shared-libs \
|
||||
--enable-shared-libs \
|
||||
--disable-debug \
|
||||
--with-libiconv="$SYSROOT_PREFIX/usr" \
|
||||
--disable-krb5developer \
|
||||
@ -117,17 +115,14 @@ samba_cv_have_setresuid=yes \
|
||||
--without-sqlite3 \
|
||||
--without-setproctitle \
|
||||
|
||||
make bin/libtalloc.a
|
||||
make bin/libwbclient.a
|
||||
make bin/libtdb.a
|
||||
make bin/libsmbclient.a
|
||||
make bin/libsmbclient.so
|
||||
|
||||
if [ "$SAMBA_SERVER" = "yes" ]; then
|
||||
make bin/samba_multicall
|
||||
fi
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
cp -P bin/*.a $SYSROOT_PREFIX/usr/lib
|
||||
cp -P bin/*.so* $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/include
|
||||
cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include
|
||||
|
@ -22,6 +22,9 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -P $PKG_BUILD/source3/bin/*.so* $INSTALL/usr/lib
|
||||
|
||||
if [ "$SAMBA_SERVER" = "yes" ]; then
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $PKG_BUILD/source3/bin/samba_multicall $INSTALL/usr/bin
|
||||
|
Loading…
x
Reference in New Issue
Block a user