From 47909599380bb03bd8142a66a2f16f6dc17fcf1a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 Nov 2023 11:50:03 +0530 Subject: [PATCH] Use -fno-plt We dont need the PLT and it frees up some registers --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index be67cddde..5e1ba766c 100755 --- a/setup.py +++ b/setup.py @@ -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(