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:
Stefan Saraev 2013-08-11 17:42:10 +03:00
parent 166b214455
commit 386469f4bf
2 changed files with 8 additions and 1 deletions

View File

@ -25,6 +25,10 @@
# boost fails building with LTO support
strip_lto
CFLAGS="$CFLAGS -fPIC"
CXXFLAGS="$CXXFLAGS -fPIC"
LDFLAGS="$LDFLAGS -fPIC"
cd $PKG_BUILD
sh bootstrap.sh \
--prefix=/usr \
@ -40,5 +44,8 @@ $ROOT/$TOOLCHAIN/bin/bjam -d2 --toolset=gcc link=static \
--with-thread \
--with-iostreams \
--with-system \
--with-serialization \
--with-filesystem \
--with-python \
--with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \
install

View File

@ -26,7 +26,7 @@ PKG_LICENSE="OSS"
PKG_SITE="http://www.boost.org/"
PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.53.0/${PKG_NAME}_${PKG_VERSION}.tar.bz2"
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_SECTION="devel"
PKG_SHORTDESC="boost: Peer-reviewed STL style libraries for C++"