Skip to content

Commit

Permalink
gmp: Remove .la files when cross-building
Browse files Browse the repository at this point in the history
The files don't include the sysroot prefix in some places and do in
others confusing libtool.
  • Loading branch information
bsdjhb committed Jan 30, 2024
1 parent af47e1d commit 2b36f0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pycheribuild/projects/cross/gmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ def setup(self):
def configure(self, **kwargs):
self.run_cmd("./.bootstrap", cwd=self.source_dir)
super().configure(**kwargs)

def install(self, **kwargs):
super().install(**kwargs)
if not self.compiling_for_host():
self.delete_file(self.install_dir / "lib/libgmp.la", warn_if_missing=True)

0 comments on commit 2b36f0f

Please sign in to comment.