diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template
index d8d77214df3..b1028e98c2f 100644
--- a/srcpkgs/boost/template
+++ b/srcpkgs/boost/template
@@ -21,8 +21,8 @@ if [ -z "$CROSS_BUILD" ]; then
 fi
 
 case "$XBPS_TARGET_MACHINE" in
-	i686*)    _arch=i386;   _toolset="gcc-i386";    _abi=sysv  ;;
-	x86_64*)  _arch=x86_64; _toolset="gcc-x86_64";  _abi=sysv  ;;
+	i686*)    _arch=x86;    _toolset="gcc-i386";    _abi=sysv  ;;
+	x86_64*)  _arch=x86;    _toolset="gcc-x86_64";  _abi=sysv  ;;
 	arm*)     _arch=arm;    _toolset="gcc-arm";     _abi=aapcs ;;
 	aarch64*) _arch=arm;    _toolset="gcc-aarch64"; _abi=aapcs ;;
 	mips*)    _arch=mips;   _toolset="gcc-mips";    _abi=o32   ;;