Skip to content

Commit

Permalink
Update package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA authored Mar 1, 2024
1 parent b2970a5 commit 4ed2116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions var/spack/repos/builtin/packages/py-pyhdf/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def setup_build_environment(self, env):
inc_dirs = []
lib_dirs = []
# Strip -I and -L from spec include_flags / search_flags
inc_dirs.append(self.spec["zlib"].headers.include_flags.lstrip("-I"))
inc_dirs.append(self.spec["zlib-api"].headers.include_flags.lstrip("-I"))
inc_dirs.append(self.spec["hdf"].headers.include_flags.lstrip("-I"))
inc_dirs.append(self.spec["jpeg"].headers.include_flags.lstrip("-I"))
lib_dirs.append(self.spec["zlib"].libs.search_flags.lstrip("-L"))
lib_dirs.append(self.spec["zlib-api"].libs.search_flags.lstrip("-L"))
lib_dirs.append(self.spec["hdf"].libs.search_flags.lstrip("-L"))
lib_dirs.append(self.spec["jpeg"].libs.search_flags.lstrip("-L"))
env.set("INCLUDE_DIRS", ":".join(inc_dirs))
Expand Down

0 comments on commit 4ed2116

Please sign in to comment.