diff options
| author | Michael Forney <mforney@mforney.org> | 2020-12-04 14:04:03 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-12-04 14:04:17 -0800 |
| commit | 7df1a7fabf0e5e5f82b9967b9a0100e086a71d6b (patch) | |
| tree | a66657286ce3a2d71c312a0bfdb550f75210197e | |
| parent | 8ce6bc3a6af6ea847d6c6d488f75d833422d6d49 (diff) | |
Add missing -fPIE to default CFLAGS, and update .build.yml for static PIE
| -rw-r--r-- | .build.yml | 2 | ||||
| -rw-r--r-- | config.def.lua | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ tasks: return { builddir='out', fs=dofile 'fs.lua', - target={platform='x86_64-linux-musl', cflags='-Os -pipe', ldflags='-s -static', mc='6m'}, + target={platform='x86_64-linux-musl', cflags='-Os -fPIE -pipe', ldflags='-s -static-pie', mc='6m', pie=true}, 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 f2305e25..3c84d061 100644 --- a/config.def.lua +++ b/config.def.lua @@ -18,7 +18,7 @@ return { -- target toolchain and flags target={ platform='x86_64-linux-musl', - cflags='-Os -pipe', + cflags='-Os -fPIE -pipe', ldflags='-s -static-pie', pie=true, }, |
