Skip to content

Commit

Permalink
Add gmp/libiconv as a dependency for gpr2
Browse files Browse the repository at this point in the history
as a workaround of missing -Lgmp/iconv in gnatcoll-binding linker options.
  • Loading branch information
reznikmm authored and Fabien-Chouteau committed Mar 14, 2024
1 parent 6da7f1f commit 37708df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion specs/gpr2.anod
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,21 @@ class LibGPR2(spec("common")):

@property
def build_deps(self):
return [
deps = [
Anod.Dependency("base_gcc", track=True),
Anod.Dependency("gprbuild", track=True),
Anod.Dependency("xmlada", track=True),
Anod.Dependency("libgpr", track=True),
Anod.Dependency("gnatcoll", track=True),
Anod.Dependency("gnatcoll-bindings", track=True),
Anod.Dependency("gprconfig_kb", track=True),
Anod.Dependency("gmp", track=True),
]
# gnatcoll-bindings doesn't pass -Lgmp&iconv, so let's depend on them
if self.env.target.os.name == "windows":
deps.append(Anod.Dependency("libiconv", track=True))

return deps

def update_version(self):
text_replace(
Expand Down

0 comments on commit 37708df

Please sign in to comment.