cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit e9291d6d0399fbe1365171c12500eb60248f7a08
parent ba59821bb8f3859355af86d8ac80492aaa9eea66
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu, 12 Mar 2020 23:58:38 +0200

kiss-choot: Allow arch to be set via $2

Diffstat:
Mcontrib/kiss-chroot | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 }