aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-chroot
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-06-21 20:20:10 +0000
committermerakor <cem@ckyln.com>2020-06-21 20:20:10 +0000
commita7192859e7257edf050ea12ec5a71a858b209520 (patch)
treef7792d83836b0b55c33f060d0d4f00bf194ec58f /contrib/kiss-chroot
parenteb1fb42b4f730ed15c63d137481a39b40a89beeb (diff)
downloadcpt-a7192859e7257edf050ea12ec5a71a858b209520.tar.gz
kiss-chroot: use system flags where applicable
FossilOrigin-Name: 5e280d22bbf3abc8732f00c28cc996fedaa97f7b9a7af3729cb6051cc70ce368
Diffstat (limited to 'contrib/kiss-chroot')
-rwxr-xr-xcontrib/kiss-chroot6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/kiss-chroot b/contrib/kiss-chroot
index 931b9e3..fc0e16c 100755
--- a/contrib/kiss-chroot
+++ b/contrib/kiss-chroot
@@ -58,9 +58,9 @@ main() {
SHELL=/bin/sh \
USER=root \
KISS_ASROOT=1 \
- CFLAGS="${2:--march=$march -mtune=generic -pipe -Os}" \
- CXXFLAGS="${2:--march=$march -mtune=generic -pipe -Os}" \
- MAKEFLAGS="-j$(nproc 2>/dev/null || echo 1)" \
+ CFLAGS="${CFLAGS:--march=$march -mtune=generic -pipe -Os}" \
+ CXXFLAGS="${CXXFLAGS:--march=$march -mtune=generic -pipe -Os}" \
+ MAKEFLAGS="${MAKFLAGS:--j$(nproc 2>/dev/null || echo 1)}" \
/bin/sh -l
}
}