diff options
| author | Michael Forney <mforney@mforney.org> | 2020-04-22 03:01:24 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-04-22 22:55:05 -0700 |
| commit | ecc7a257aae1de11f4a5ca77402e3d12cf973061 (patch) | |
| tree | 75fc63242555ae16b6a772ba319e4618a8a7c6fb | |
| parent | d36ce79317be230c6559f8e1abba88095f998fb1 (diff) | |
Use -Os instead of -O2 by default
| -rw-r--r-- | .build.yml | 2 | ||||
| -rw-r--r-- | config.def.lua | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 index cc643e81..88f77f0c 100644 --- 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 }, |
