spec: allow using gcc for SPEC compiler
This commit is contained in:
@@ -110,7 +110,6 @@ default:
|
||||
# EDIT: the directory where your compiler is installed
|
||||
%ifndef %{gcc_dir}
|
||||
#% define gcc_dir /SW/compilers/GCC/Linux/x86_64/gcc-6.3.0
|
||||
% define gcc_dir @@GCCDIR@@
|
||||
% define sysroot_dir @@SYSROOT@@
|
||||
%endif
|
||||
|
||||
@@ -120,13 +119,12 @@ default:
|
||||
# and: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
|
||||
LDFLAGS = @@LDFLAGS@@
|
||||
|
||||
LIBS = %{gcc_dir}/lib/libpgmath.a %{gcc_dir}/lib/libflang.a %{gcc_dir}/lib/libflangrti.a -lompstub
|
||||
LIBS = @@LIBS@@
|
||||
|
||||
#preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/lib64:%{ENV_LD_LIBRARY_PATH}
|
||||
SPECLANG = %{gcc_dir}/bin
|
||||
CC = $(SPECLANG)/clang --sysroot %{sysroot_dir} # -std=c99 %{model}
|
||||
CXX = $(SPECLANG)/clang++ --sysroot %{sysroot_dir} # %{model}
|
||||
FC = $(SPECLANG)/flang --sysroot %{sysroot_dir} # %{model}
|
||||
CC = @@CompilerCC@@ # -std=c99 %{model}
|
||||
CXX = @@CompilerCXX@@ # %{model}
|
||||
FC = @@CompilerFC@@ # %{model}
|
||||
# How to say "Show me your version, please"
|
||||
CC_VERSION_OPTION = -v
|
||||
CXX_VERSION_OPTION = -v
|
||||
|
||||
Reference in New Issue
Block a user