diff options
| author | Michael Forney <mforney@mforney.org> | 2018-02-16 01:12:57 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2018-02-16 02:52:34 -0800 |
| commit | 8bd73d32375d7466d805c1652a5b1734caa20e19 (patch) | |
| tree | d625431676d4f22cd1c5d98fc6d472eb108a4c46 /config.def.lua | |
| parent | 3441db2f4366273ea4bf6f00b663b95344ea40a0 (diff) | |
Build static PIEs by default
Diffstat (limited to 'config.def.lua')
| -rw-r--r-- | config.def.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config.def.lua b/config.def.lua index 20f0f7e5..4f0357ce 100644 --- a/config.def.lua +++ b/config.def.lua @@ -15,9 +15,10 @@ return { -- target toolchain and flags target={ toolchain='x86_64-linux-musl', - cflags='-O2 -pipe', + cflags='-O2 -pipe -fpie', cxxflags='$target_cflags', - ldflags='-s -static', + ldflags='-s -static -pie', + pie=true }, -- host toolchain and flags |
