Revert "assets: update specTemplate"

This reverts commit e22c95c327.
This commit is contained in:
2024-07-01 17:36:17 +08:00
parent 7dbac8c1b3
commit e03aaa2347

View File

@@ -116,25 +116,18 @@ default:
%ifndef %{gcc_dir} %ifndef %{gcc_dir}
#% define gcc_dir /SW/compilers/GCC/Linux/x86_64/gcc-6.3.0 #% define gcc_dir /SW/compilers/GCC/Linux/x86_64/gcc-6.3.0
% define gcc_dir @@GCCDIR@@ % define gcc_dir @@GCCDIR@@
% define sysroot_dir /usr/sw/standard-830-6b-test
%endif %endif
# EDIT if needed: the preENV line adds library directories to the runtime # EDIT if needed: the preENV line adds library directories to the runtime
# path. You can adjust it, or add lines for other environment variables. # path. You can adjust it, or add lines for other environment variables.
# See: https://www.spec.org/cpu2017/Docs/config.html#preenv # See: https://www.spec.org/cpu2017/Docs/config.html#preenv
# and: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html # and: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
LDFLAGS = -L %{gcc_dir}/lib \ preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/usr/sw/standard-830-6b-test/lib:/lib64
-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
#preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/lib64:%{ENV_LD_LIBRARY_PATH} #preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/lib64:%{ENV_LD_LIBRARY_PATH}
SPECLANG = %{gcc_dir}/bin SPECLANG = %{gcc_dir}/bin
CC = $(SPECLANG)/clang --sysroot %{sysroot_dir} # -std=c99 %{model} CC = $(SPECLANG)/clang -L%{gcc_dir}/lib --sysroot /usr/sw/standard-830-6b-test # -std=c99 %{model}
CXX = $(SPECLANG)/clang++ --sysroot %{sysroot_dir} # %{model} CXX = $(SPECLANG)/clang++ -L%{gcc_dir}/lib --sysroot /usr/sw/standard-830-6b-test # %{model}
FC = $(SPECLANG)/flang --sysroot %{sysroot_dir} # %{model} FC = $(SPECLANG)/flang -L%{gcc_dir}/lib --sysroot /usr/sw/standard-830-6b-test # %{model}
# How to say "Show me your version, please" # How to say "Show me your version, please"
CC_VERSION_OPTION = -v CC_VERSION_OPTION = -v
CXX_VERSION_OPTION = -v CXX_VERSION_OPTION = -v