mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
boost: compile with -fPIC, add serialization, filesystem, python
without -fPIC other stuff won't be able to link against libboost_*.a serialization and filesystem I need for encfs. they don't hurt as compiled as static libraries only python closes #2187
This commit is contained in:
parent
166b214455
commit
386469f4bf
@ -25,6 +25,10 @@
|
|||||||
# boost fails building with LTO support
|
# boost fails building with LTO support
|
||||||
strip_lto
|
strip_lto
|
||||||
|
|
||||||
|
CFLAGS="$CFLAGS -fPIC"
|
||||||
|
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||||
|
LDFLAGS="$LDFLAGS -fPIC"
|
||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
sh bootstrap.sh \
|
sh bootstrap.sh \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
@ -40,5 +44,8 @@ $ROOT/$TOOLCHAIN/bin/bjam -d2 --toolset=gcc link=static \
|
|||||||
--with-thread \
|
--with-thread \
|
||||||
--with-iostreams \
|
--with-iostreams \
|
||||||
--with-system \
|
--with-system \
|
||||||
|
--with-serialization \
|
||||||
|
--with-filesystem \
|
||||||
|
--with-python \
|
||||||
--with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \
|
--with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \
|
||||||
install
|
install
|
||||||
|
@ -26,7 +26,7 @@ PKG_LICENSE="OSS"
|
|||||||
PKG_SITE="http://www.boost.org/"
|
PKG_SITE="http://www.boost.org/"
|
||||||
PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.53.0/${PKG_NAME}_${PKG_VERSION}.tar.bz2"
|
PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.53.0/${PKG_NAME}_${PKG_VERSION}.tar.bz2"
|
||||||
PKG_DEPENDS="zlib bzip2"
|
PKG_DEPENDS="zlib bzip2"
|
||||||
PKG_BUILD_DEPENDS="toolchain boost-jam Python-host zlib bzip2"
|
PKG_BUILD_DEPENDS="toolchain boost-jam Python-host Python zlib bzip2"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="devel"
|
PKG_SECTION="devel"
|
||||||
PKG_SHORTDESC="boost: Peer-reviewed STL style libraries for C++"
|
PKG_SHORTDESC="boost: Peer-reviewed STL style libraries for C++"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user