jinx: fix building on non-x86_64 hosts

Allows building Astral on non-x86_64 hosts (e.g. aarch64).
This commit is contained in:
techflashYT
2026-07-07 08:07:14 -07:00
parent cceac09b02
commit 3960e1c682
3 changed files with 14 additions and 3 deletions
+7 -1
View File
@@ -3,7 +3,13 @@ JINX_DEBIAN_SNAPSHOT=20260430T144239Z
JINX_BASE_PACKAGES="autopoint bison cmake docbook-xsl docbook-xml docbook-xsl-ns docbook5-xml doxygen file flex gettext groff m4 make meson ninja-build perl python3 texinfo w3m which xmlto xsltproc"
JINX_REPO_URL="https://astral-os.org/repository/${JINX_ARCH}/"
export CFLAGS="-O2 -march=x86-64 -pipe -mtune=generic"
# Can't use -march=x86-64 and whatnot in global CFLAGS on non-x86_64 hosts, since it affects host-recipes too
# FIXME: should separate target vs host CFLAGS at some point
if [ "$(uname -m)" = "x86_64" ]; then
export CFLAGS="-O2 -march=x86-64 -pipe -mtune=generic"
else
export CFLAGS="-O2 -pipe"
fi
export CXXFLAGS="${CFLAGS}"
copy_install_hook () {