accept the patch from this random based guy on stackoverflow

This commit is contained in:
flysand7 2023-09-04 18:52:58 +11:00
parent 9fa3a65736
commit 3d761f344f
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def compile_obj(output, inputs, additional_flags=[]):
compile(output, inputs, ['-c -fpic'] + additional_flags) compile(output, inputs, ['-c -fpic'] + additional_flags)
def compile_exe(output, inputs, 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=[]): def compile_shared(output, inputs, additional_flags=[]):
compile(output, inputs, ['-shared'] + additional_flags) compile(output, inputs, ['-shared'] + additional_flags)
@ -134,6 +134,7 @@ cc_includes.append('include/linux')
cc_flags_push() cc_flags_push()
cc_defines_push() cc_defines_push()
cc_flags.extend([ cc_flags.extend([
'-fPIC',
'-fno-stack-protector', '-fno-stack-protector',
'-fno-builtin', '-fno-builtin',
'-Wl,-e,_dlstart', '-Wl,-e,_dlstart',