assets/specTemplate: use static linkage

This commit is contained in:
2024-07-22 10:33:48 +08:00
parent ed1e100204
commit 99ca333be4

View File

@@ -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