logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 7df1a7fabf0e5e5f82b9967b9a0100e086a71d6b
parent 8ce6bc3a6af6ea847d6c6d488f75d833422d6d49
Author: Michael Forney <mforney@mforney.org>
Date:   Fri,  4 Dec 2020 14:04:03 -0800

Add missing -fPIE to default CFLAGS, and update .build.yml for static PIE

Diffstat:

M.build.yml2+-
Mconfig.def.lua2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.build.yml b/.build.yml @@ -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 @@ -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, },