From e9291d6d0399fbe1365171c12500eb60248f7a08 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 12 Mar 2020 23:58:38 +0200 Subject: [PATCH] kiss-choot: Allow arch to be set via $2 --- contrib/kiss-chroot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/kiss-chroot b/contrib/kiss-chroot index c89271a..e391a11 100755 --- a/contrib/kiss-chroot +++ b/contrib/kiss-chroot @@ -48,8 +48,8 @@ main() { SHELL=/bin/sh \ USER=root \ KISS_ASROOT=1 \ - CFLAGS="-march=x86-64 -mtune=generic -pipe -Os" \ - CXXFLAGS="-march=x86-64 -mtune=generic -pipe -Os" \ + CFLAGS="-march=${2:-x86-64} -mtune=generic -pipe -Os" \ + CXXFLAGS="-march=${2:-x86-64} -mtune=generic -pipe -Os" \ MAKEFLAGS="-j$(nproc 2>/dev/null || echo 1)" \ /bin/sh -l }