From 3d761f344f454f3796294528290e183fce4f41c2 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Mon, 4 Sep 2023 18:52:58 +1100 Subject: [PATCH] accept the patch from this random based guy on stackoverflow --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 7c30718..bb4ffbf 100755 --- a/build.py +++ b/build.py @@ -88,7 +88,7 @@ def compile_obj(output, inputs, additional_flags=[]): compile(output, inputs, ['-c -fpic'] + additional_flags) def compile_exe(output, inputs, additional_flags=[]): - compile(output, inputs, ['-pie'] + additional_flags) + compile(output, inputs, ['-pie', '-fPIE'] + additional_flags) def compile_shared(output, inputs, additional_flags=[]): compile(output, inputs, ['-shared'] + additional_flags) @@ -134,6 +134,7 @@ cc_includes.append('include/linux') cc_flags_push() cc_defines_push() cc_flags.extend([ + '-fPIC', '-fno-stack-protector', '-fno-builtin', '-Wl,-e,_dlstart',