From 99ca333be4c4a784f4e5dbe20ee379498b6128f8 Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Mon, 22 Jul 2024 10:33:48 +0800 Subject: [PATCH] assets/specTemplate: use static linkage --- assets/specTemplate.cfg | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/assets/specTemplate.cfg b/assets/specTemplate.cfg index 857de32..d5efaea 100644 --- a/assets/specTemplate.cfg +++ b/assets/specTemplate.cfg @@ -123,14 +123,9 @@ default: # path. You can adjust it, or add lines for other environment variables. # See: https://www.spec.org/cpu2017/Docs/config.html#preenv # and: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html - LDFLAGS = -L %{gcc_dir}/lib \ - -Wl,-rpath,%{gcc_dir}/lib \ - -Wl,-rpath,%{sysroot_dir}/lib \ - -Wl,-rpath-link,%{gcc_dir}/lib \ - -Wl,-rpath-link,%{sysroot_dir}/lib \ - -Wl,-dynamic-linker,%{sysroot_dir}/lib/ld-linux.so.2 + LDFLAGS = -L %{gcc_dir}/lib -static - LIBS = %{gcc_dir}/lib/libpgmath.a + LIBS = %{gcc_dir}/lib/libpgmath.a %{gcc_dir}/lib/libflang.a %{gcc_dir}/lib/libflangrti.a -lompstub #preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/lib64:%{ENV_LD_LIBRARY_PATH} SPECLANG = %{gcc_dir}/bin @@ -180,7 +175,7 @@ default: # data model applies to all benchmarks EXTRA_COPTIMIZE = -fgnu89-inline 507.cactuBSSN_r,607.cactuBSSN_s: - EXTRA_LDFLAGS = -Wl,-z,muldefs -L%{gcc_dir}/lib -lflang -lflangrti -lpgmath -lomp + EXTRA_LIBS = -Wl,-z,muldefs -L%{gcc_dir}/lib -lrt -pthread 521.wrf_r,621.wrf_s: #lang='F,C' CPORTABILITY = -DSPEC_CASE_FLAG