diff --git a/main/acpica/APKBUILD b/main/acpica/APKBUILD index 705c3f1c216..9bd218b6620 100644 --- a/main/acpica/APKBUILD +++ b/main/acpica/APKBUILD @@ -28,8 +28,12 @@ build() { generate/unix/Makefile \ generate/unix/Makefile.config \ || return 1 - - make BITSFLAG=-m32 || return 1 + + case $CARCH in + x86_64) _bits=64;; + x86) _bits=32;; + esac + make BITSFLAG=-m$_bits || return 1 } package() {