summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/papi/sysdetect-free-form-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/papi/sysdetect-free-form-fix.patch')
-rw-r--r--var/spack/repos/builtin/packages/papi/sysdetect-free-form-fix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/papi/sysdetect-free-form-fix.patch b/var/spack/repos/builtin/packages/papi/sysdetect-free-form-fix.patch
new file mode 100644
index 0000000000..d38cf1c3c3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/papi/sysdetect-free-form-fix.patch
@@ -0,0 +1,17 @@
+diff --git a/src/components/sysdetect/tests/Makefile b/src/components/sysdetect/tests/Makefile
+index 63ac01358..79ce57e4b 100644
+--- a/src/components/sysdetect/tests/Makefile
++++ b/src/components/sysdetect/tests/Makefile
+@@ -21,11 +21,9 @@ endif
+ intel_compilers := ifort ifx
+ cray_compilers := ftn crayftn
+
+-FFLAGS += -ffree-form
+-
+ ifeq ($(notdir $(F77)),gfortran)
+ FFLAGS +=-ffree-form -ffree-line-length-none
+-else ifeq ($(notdir $(F77)),flang)
++else ifeq ($(patsubst %flang,,$(notdir $(F77))),) # compiler name ends with flang
+ FFLAGS +=-ffree-form
+ else ifneq ($(findstring $(notdir $(F77)), $(intel_compilers)),)
+ FFLAGS +=-free