Skip to content

Commit

Permalink
fix gobject-introspection meson args
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA authored Oct 31, 2023
1 parent 83b431f commit 12174f4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ def filter_file_to_avoid_overly_long_shebangs(self):

class MesonBuilder(spack.build_systems.meson.MesonBuilder):
def meson_args(self):
args = []
if self.spec.satisfies("^cairo ~shared"):
pkgconfig = which("pkg-config")
cairo_libs = pkgconfig("cairo", "--static", "--libs", output=str).strip()
return [f"-Dc_link_args={cairo_libs}"]
args.append(f"-Dc_link_args={cairo_libs}")
return args

0 comments on commit 12174f4

Please sign in to comment.