Skip to content

Commit

Permalink
Use -fno-plt
Browse files Browse the repository at this point in the history
We dont need the PLT and it frees up some registers
  • Loading branch information
kovidgoyal committed Nov 12, 2023
1 parent d2e7d35 commit 36123d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,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}'
f' -pipe {march} -fvisibility=hidden {fortify_source} -fno-plt'
)
)
cflags = shlex.split(cflags_) + shlex.split(
Expand Down

0 comments on commit 36123d3

Please sign in to comment.