commit: ecc7a257aae1de11f4a5ca77402e3d12cf973061
parent d36ce79317be230c6559f8e1abba88095f998fb1
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 22 Apr 2020 03:01:24 -0700
Use -Os instead of -O2 by default
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.build.yml b/.build.yml
@@ -30,7 +30,7 @@ tasks:
return {
builddir='out',
fs=dofile 'fs.lua',
- target={platform='x86_64-linux-musl', cflags='-O2 -pipe', ldflags='-s -static', mc='6m'},
+ target={platform='x86_64-linux-musl', cflags='-Os -pipe', ldflags='-s -static', mc='6m'},
host={cflags='-pipe', ldflags=''},
repo={path='$HOME/root-x86_64.git', flags='--bare', tag='tree', branch=os.getenv('SET')},
}
diff --git a/config.def.lua b/config.def.lua
@@ -15,7 +15,7 @@ return {
-- target toolchain and flags
target={
platform='x86_64-linux-musl',
- cflags='-O2 -pipe -fpie',
+ cflags='-Os -pipe -fpie',
ldflags='-s -static-pie',
pie=true
},