summaryrefslogtreecommitdiff
path: root/package/boost/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-04 19:45:03 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-04 19:46:45 +0100
commit052a320a9c1139d5457c0baa5ee0288302862a4e (patch)
tree216fd8419faebaa2886cef5b7b3690b06ecc9f52 /package/boost/Makefile
parent884cac05f18761bffc180a4bf16fc11dc5763b05 (diff)
boost: fix compile for MIPS
Diffstat (limited to 'package/boost/Makefile')
-rw-r--r--package/boost/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/package/boost/Makefile b/package/boost/Makefile
index 91240a58a..9b14cb103 100644
--- a/package/boost/Makefile
+++ b/package/boost/Makefile
@@ -54,6 +54,8 @@ CONFIGURE_ARGS+= --target=$(GNU_TARGET_NAME) \
--prefix=${WRKINST}/usr \
--ignore-site-config \
--without-mpi \
+ --without-context \
+ --without-coroutine \
--without-locale
ifneq (${ADK_PACKAGE_BOOST_IOSTREAMS},)
@@ -95,16 +97,27 @@ ifeq (${ADK_PACKAGE_BOOST_WAVE},)
CONFIGURE_ARGS+= --without-wave
endif
+BOOST_ARCH:= $(ADK_TARGET_ARCH)
+
ifeq ($(ADK_TARGET_ARCH),x86_64)
BOOST_ARCH:= x86
-else ifeq ($(ADK_TARGET_ARCH),ppc)
+endif
+ifeq ($(ADK_TARGET_ARCH),ppc)
BOOST_ARCH:= power
-else
-BOOST_ARCH:= $(ADK_TARGET_ARCH)
endif
+ifeq ($(ADK_CPU_MIPS_MIPS32),y)
+BOOST_ARCH:= mips32
+endif
+ifeq ($(ADK_CPU_MIPS_MIPS32R2),y)
+BOOST_ARCH:= mips32r2
+endif
+
ifeq ($(ADK_TARGET_ARCH),arm)
BOOST_ABI:= abi=aapcs
endif
+ifeq ($(ADK_TARGET_ARCH),mips)
+BOOST_ABI:= abi=o32
+endif
# some variables for build
GPP_PATH:= ${TOOLCHAIN_DIR}/usr/bin/${GNU_TARGET_NAME}-g++