summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/compilers/fj.py2
-rw-r--r--lib/spack/spack/test/compilers.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/spack/spack/compilers/fj.py b/lib/spack/spack/compilers/fj.py
index e37b3898bd..3f378746b7 100644
--- a/lib/spack/spack/compilers/fj.py
+++ b/lib/spack/spack/compilers/fj.py
@@ -46,4 +46,4 @@ class Fj(spack.compiler.Compiler):
@property
def pic_flag(self):
- return "-fPIC"
+ return "-KPIC"
diff --git a/lib/spack/spack/test/compilers.py b/lib/spack/spack/test/compilers.py
index 0a81dd39d9..1b66b692e0 100644
--- a/lib/spack/spack/test/compilers.py
+++ b/lib/spack/spack/test/compilers.py
@@ -274,11 +274,11 @@ def test_xl_r_flags():
def test_fj_flags():
- supported_flag_test("openmp_flag", "-Kopenmp", "fj@1.2.0")
- supported_flag_test("cxx98_flag", "-std=c++98", "fj@1.2.0")
- supported_flag_test("cxx11_flag", "-std=c++11", "fj@1.2.0")
- supported_flag_test("cxx14_flag", "-std=c++14", "fj@1.2.0")
- supported_flag_test("pic_flag", "-fPIC", "fj@1.2.0")
+ supported_flag_test("openmp_flag", "-Kopenmp", "fj@4.0.0")
+ supported_flag_test("cxx98_flag", "-std=c++98", "fj@4.0.0")
+ supported_flag_test("cxx11_flag", "-std=c++11", "fj@4.0.0")
+ supported_flag_test("cxx14_flag", "-std=c++14", "fj@4.0.0")
+ supported_flag_test("pic_flag", "-KPIC", "fj@4.0.0")
@pytest.mark.regression('10191')