Skip to content

Commit

Permalink
Add static gettext support to glib meson build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Oct 18, 2023
1 parent 23d6313 commit 4db798a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions var/spack/repos/builtin/packages/glib/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@ def meson_args(self):
args.append("-Diconv=external")
else:
args.append("-Diconv=gnu")

if self.spec.satisfies("^gettext ~shared"):
libs = self.spec["iconv"].libs.search_flags + " " + self.spec["iconv"].libs.link_flags
args.append(f"-Dc_link_args={libs}")
args.append(f"-Dcpp_link_args={libs}")

return args


Expand Down

0 comments on commit 4db798a

Please sign in to comment.