mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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
|
if [ "$SAMBA_CLIENT" = yes ]; then
|
||||||
XBMC_SAMBA="--enable-samba"
|
XBMC_SAMBA="--enable-samba"
|
||||||
export LIBS="$LIBS -ltalloc -ltdb -lwbclient"
|
|
||||||
else
|
else
|
||||||
XBMC_SAMBA="--disable-samba"
|
XBMC_SAMBA="--disable-samba"
|
||||||
fi
|
fi
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -fPIC -DPIC"
|
|
||||||
|
|
||||||
cd $PKG_BUILD/source3
|
cd $PKG_BUILD/source3
|
||||||
|
|
||||||
sh autogen.sh
|
sh autogen.sh
|
||||||
@ -57,7 +55,7 @@ samba_cv_have_setresuid=yes \
|
|||||||
--with-piddir=/var/run \
|
--with-piddir=/var/run \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-shared-libs \
|
--enable-shared-libs \
|
||||||
--disable-debug \
|
--disable-debug \
|
||||||
--with-libiconv="$SYSROOT_PREFIX/usr" \
|
--with-libiconv="$SYSROOT_PREFIX/usr" \
|
||||||
--disable-krb5developer \
|
--disable-krb5developer \
|
||||||
@ -117,17 +115,14 @@ samba_cv_have_setresuid=yes \
|
|||||||
--without-sqlite3 \
|
--without-sqlite3 \
|
||||||
--without-setproctitle \
|
--without-setproctitle \
|
||||||
|
|
||||||
make bin/libtalloc.a
|
make bin/libsmbclient.so
|
||||||
make bin/libwbclient.a
|
|
||||||
make bin/libtdb.a
|
|
||||||
make bin/libsmbclient.a
|
|
||||||
|
|
||||||
if [ "$SAMBA_SERVER" = "yes" ]; then
|
if [ "$SAMBA_SERVER" = "yes" ]; then
|
||||||
make bin/samba_multicall
|
make bin/samba_multicall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
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
|
mkdir -p $SYSROOT_PREFIX/usr/include
|
||||||
cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include
|
cp include/libsmbclient.h $SYSROOT_PREFIX/usr/include
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
|
|
||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/lib
|
||||||
|
cp -P $PKG_BUILD/source3/bin/*.so* $INSTALL/usr/lib
|
||||||
|
|
||||||
if [ "$SAMBA_SERVER" = "yes" ]; then
|
if [ "$SAMBA_SERVER" = "yes" ]; then
|
||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp $PKG_BUILD/source3/bin/samba_multicall $INSTALL/usr/bin
|
cp $PKG_BUILD/source3/bin/samba_multicall $INSTALL/usr/bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user