Use -fno-plt

We dont need the PLT and it frees up some registers
This commit is contained in:
Kovid Goyal
2023-11-12 11:50:03 +05:30
parent 33249c872f
commit 4790959938

View File

@@ -468,7 +468,7 @@ def init_env(
'OVERRIDE_CFLAGS', (
f'-Wextra {float_conversion} -Wno-missing-field-initializers -Wall -Wstrict-prototypes {std}'
f' {werror} {optimize} {sanitize_flag} -fwrapv {stack_protector} {missing_braces}'
f' -pipe {march} -fvisibility=hidden {fortify_source} {control_flow_protection}'
f' -pipe {march} -fvisibility=hidden {fortify_source} {control_flow_protection} -fno-plt'
)
)
cflags = shlex.split(cflags_) + shlex.split(