assets: update specTemplate
For using fixed sysroot toolchains.
This commit is contained in:
@@ -116,18 +116,25 @@ default:
|
||||
%ifndef %{gcc_dir}
|
||||
#% define gcc_dir /SW/compilers/GCC/Linux/x86_64/gcc-6.3.0
|
||||
% define gcc_dir @@GCCDIR@@
|
||||
% define sysroot_dir /usr/sw/standard-830-6b-test
|
||||
%endif
|
||||
|
||||
# EDIT if needed: the preENV line adds library directories to the runtime
|
||||
# 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
|
||||
preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/usr/sw/standard-830-6b-test/lib:/lib64
|
||||
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
|
||||
|
||||
#preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/lib64:%{ENV_LD_LIBRARY_PATH}
|
||||
SPECLANG = %{gcc_dir}/bin
|
||||
CC = $(SPECLANG)/clang -L%{gcc_dir}/lib --sysroot /usr/sw/standard-830-6b-test # -std=c99 %{model}
|
||||
CXX = $(SPECLANG)/clang++ -L%{gcc_dir}/lib --sysroot /usr/sw/standard-830-6b-test # %{model}
|
||||
FC = $(SPECLANG)/flang -L%{gcc_dir}/lib --sysroot /usr/sw/standard-830-6b-test # %{model}
|
||||
CC = $(SPECLANG)/clang --sysroot %{sysroot_dir} # -std=c99 %{model}
|
||||
CXX = $(SPECLANG)/clang++ --sysroot %{sysroot_dir} # %{model}
|
||||
FC = $(SPECLANG)/flang --sysroot %{sysroot_dir} # %{model}
|
||||
# How to say "Show me your version, please"
|
||||
CC_VERSION_OPTION = -v
|
||||
CXX_VERSION_OPTION = -v
|
||||
|
||||
Reference in New Issue
Block a user