changed linker for gcc

Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
Pratik Mankawde
2025-11-13 12:28:48 +00:00
parent 09a6e46c39
commit 2e53c5ab80

View File

@@ -176,8 +176,11 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
# Somc functions are too complex and huge for gcc compiler to handle variable tracking.
# Hence disable it.
cxx_flags += " -fno-var-tracking-assignments"
# exe_linker_flags += '-static-libubsan -static-libasan -static-libtsan'
# shared_linker_flags += '-static-libubsan -static-libasan -static-libtsan'
# Disable mold linker - it's too strict about relocations with GCC runtime libs
# Use gold or default linker instead
cmake_args += ' -Duse_mold=OFF'
exe_linker_flags += ' -fuse-ld=gold'#-static-libubsan -static-libasan -static-libtsan'
shared_linker_flags += ' -fuse-ld=gold'#-static-libubsan -static-libasan -static-libtsan'
if architecture['platform'] == 'linux/amd64':
# Add -mcmodel=medium and -fPIC to both compiler AND linker flags