From 386469f4bf6b9ef6c808b5b1980e797b67013641 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sun, 11 Aug 2013 17:42:10 +0300 Subject: [PATCH] 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 --- packages/devel/boost/build | 7 +++++++ packages/devel/boost/meta | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/devel/boost/build b/packages/devel/boost/build index 4520479f05..110b92d941 100755 --- a/packages/devel/boost/build +++ b/packages/devel/boost/build @@ -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 diff --git a/packages/devel/boost/meta b/packages/devel/boost/meta index 748c1d20fa..70ff2be20b 100644 --- a/packages/devel/boost/meta +++ b/packages/devel/boost/meta @@ -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++"