Skip to content

Commit

Permalink
nci-openmpi: use env.append_flags() (#63)
Browse files Browse the repository at this point in the history
* Use env.append_flags() instead of env.append_path().
* Thanks to Aidan Heerdegen for finding env.append_flags().
  • Loading branch information
harshula authored Feb 12, 2024
1 parent e57dc31 commit 5a1c6cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/nci-openmpi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ def setup_run_environment(self, env):
elif self.spec.satisfies("%gcc"):
finc_path = join_path(self.prefix.include, "GNU")
flib_path = join_path(self.prefix.lib, "GNU")
env.append_path("OMPI_FCFLAGS", "-I" + finc_path)
env.append_path("OMPI_LDFLAGS", "-L" + self.prefix.lib + " -L" + flib_path)

env.append_flags("OMPI_FCFLAGS", "-I" + finc_path)
env.append_flags("OMPI_LDFLAGS", "-L" + self.prefix.lib)
env.append_flags("OMPI_LDFLAGS", "-L" + flib_path)

# The following is reproduced from the builtin openmpi spack package
def setup_dependent_build_environment(self, env, dependent_spec):
Expand Down

0 comments on commit 5a1c6cb

Please sign in to comment.