aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-12 22:11:18 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-12 22:11:18 +0000
commitd38758c33f78cd4a84bab44a155325a35d96a16c (patch)
tree3d91cafbac69f3dbd9ceee36cd0471770897eefb
parentdcc04cfc5a2a4cf8258175c04250060438561a30 (diff)
downloadcpt-d38758c33f78cd4a84bab44a155325a35d96a16c.tar.gz
kiss-chroot: Set CFLAGS/CXXFLAGS via $2
FossilOrigin-Name: b603aeff3bff3f298153292b945c77e6f72ae4bc88e54973e695234de54f19f5
-rwxr-xr-xcontrib/kiss-chroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/kiss-chroot b/contrib/kiss-chroot
index e391a11..86212db 100755
--- a/contrib/kiss-chroot
+++ b/contrib/kiss-chroot
@@ -48,8 +48,8 @@ main() {
SHELL=/bin/sh \
USER=root \
KISS_ASROOT=1 \
- CFLAGS="-march=${2:-x86-64} -mtune=generic -pipe -Os" \
- CXXFLAGS="-march=${2:-x86-64} -mtune=generic -pipe -Os" \
+ CFLAGS="${2:--march=x86-64 -mtune=generic -pipe -Os}" \
+ CXXFLAGS="${2:---march=x86-64 -mtune=generic -pipe -Os}" \
MAKEFLAGS="-j$(nproc 2>/dev/null || echo 1)" \
/bin/sh -l
}