commit: 8bd73d32375d7466d805c1652a5b1734caa20e19
parent 3441db2f4366273ea4bf6f00b663b95344ea40a0
Author: Michael Forney <mforney@mforney.org>
Date: Fri, 16 Feb 2018 01:12:57 -0800
Build static PIEs by default
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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