diff options
author | merakor <cem@ckyln.com> | 2020-06-21 20:20:10 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-06-21 20:20:10 +0000 |
commit | a7192859e7257edf050ea12ec5a71a858b209520 (patch) | |
tree | f7792d83836b0b55c33f060d0d4f00bf194ec58f | |
parent | eb1fb42b4f730ed15c63d137481a39b40a89beeb (diff) | |
download | cpt-a7192859e7257edf050ea12ec5a71a858b209520.tar.gz |
kiss-chroot: use system flags where applicable
FossilOrigin-Name: 5e280d22bbf3abc8732f00c28cc996fedaa97f7b9a7af3729cb6051cc70ce368
-rwxr-xr-x | contrib/kiss-chroot | 6 |
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 } } |