Skip to content
Snippets Groups Projects
Commit 403e595e authored by Juan Escobar's avatar Juan Escobar
Browse files

Juan 27/10/2023:Rules.LXgfortran.mk, managed defaut value CC=gcc + FC=gfortran...

Juan 27/10/2023:Rules.LXgfortran.mk, managed defaut value CC=gcc + FC=gfortran <=> default wrong old CC=cc + FC=f77
parent 4e0143e5
No related branches found
No related tags found
No related merge requests found
......@@ -74,9 +74,17 @@ CXXFLAGS = $(OPT_OPENACC)
#$(OBJS_REPROD) : OPT = $(OPT_BASE) $(OPT_OPENACC) $(OPT_PERF2) -Mvect=nosimd -Minfo=all -g
endif
#
CC ?= gcc
CXX ?= g++
FC ?= gfortran
ifneq ($(origin CC),environment)
# default value CC=cc not correct for gnu compiler
CC = gcc
endif
ifneq ($(origin CXX),environment)
CXX = g++
endif
ifneq ($(origin FC),environment)
# default value FC=f77 not correct for gnu compiler
FC = gfortran
endif
# Gfortran version
GFV=$(shell $(F90) --version | grep -E -m1 -o ' [[:digit:]\.]{2,}( |$$)' | sed 's/\.//g' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment