mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
boost: set abi and architecture for all target machines properly.
This commit is contained in:
parent
dc18d57ae0
commit
3c0e0d29d8
1 changed files with 13 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'boost'
|
# Template file for 'boost'
|
||||||
pkgname=boost
|
pkgname=boost
|
||||||
version=1.58.0
|
version=1.58.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}_${version//\./_}"
|
wrksrc="${pkgname}_${version//\./_}"
|
||||||
hostmakedepends="bzip2-devel"
|
hostmakedepends="bzip2-devel"
|
||||||
makedepends="zlib-devel bzip2-devel icu-devel"
|
makedepends="zlib-devel bzip2-devel icu-devel"
|
||||||
|
@ -20,23 +20,25 @@ if [ -z "$CROSS_BUILD" ]; then
|
||||||
subpackages+=" boost-jam boost-python"
|
subpackages+=" boost-jam boost-python"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_abi=sysv
|
|
||||||
_toolset=gcc
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
arm*) _arch=arm; _toolset="gcc-arm"; _abi=aapcs;;
|
i686*) _arch=i386; _toolset="gcc-i386"; _abi=sysv ;;
|
||||||
aarch64*) _arch=aarch64; _toolset="gcc-aarch64"; _abi=aapcs;;
|
x86_64*) _arch=x86_64; _toolset="gcc-x86_64"; _abi=sysv ;;
|
||||||
mips*) _arch=mips; _toolset="gcc-mips"; _abi=o32;;
|
arm*) _arch=arm; _toolset="gcc-arm"; _abi=aapcs ;;
|
||||||
|
aarch64*) _arch=arm; _toolset="gcc-aarch64"; _abi=aapcs ;;
|
||||||
|
mips*) _arch=mips; _toolset="gcc-mips"; _abi=o32 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
echo "using gcc : ${_arch} : ${XBPS_CROSS_TRIPLET}-g++ ${CXXFLAGS} ;" > user-config.jam
|
echo "using gcc : ${_toolset#gcc-} : ${XBPS_CROSS_TRIPLET}-g++ ${CXXFLAGS} ;" \
|
||||||
|
> user-config.jam
|
||||||
else
|
else
|
||||||
echo "using gcc : : g++ ${CXXFLAGS} ;" > user-config.jam
|
echo "using gcc : ${_toolset#gcc-} : g++ ${CXXFLAGS} ;" \
|
||||||
|
> user-config.jam
|
||||||
fi
|
fi
|
||||||
./bootstrap.sh -prefix=${DESTDIR}/usr
|
./bootstrap.sh -prefix=${DESTDIR}/usr
|
||||||
./bjam --toolset=${_toolset} ${makejobs} abi=$_abi \
|
./bjam --toolset=${_toolset} ${makejobs} abi=$_abi architecture=$_arch \
|
||||||
--user-config=${wrksrc}/user-config.jam
|
--user-config=${wrksrc}/user-config.jam --debug-building
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
@ -46,7 +48,7 @@ do_install() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install headers/libs
|
# Install headers/libs
|
||||||
./bjam --prefix=${DESTDIR}/usr abi=$_abi \
|
./bjam --prefix=${DESTDIR}/usr abi=$_abi architecture=$_arch \
|
||||||
--user-config=${wrksrc}/user-config.jam install
|
--user-config=${wrksrc}/user-config.jam install
|
||||||
|
|
||||||
# Install Boost.Build stuff.
|
# Install Boost.Build stuff.
|
||||||
|
|
Loading…
Add table
Reference in a new issue