From fcad9cc30680eb397bdefaa90c2feb42d7547042 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 3 Aug 2020 16:01:47 +0000 Subject: pkg_build(): remove libtool '*.la' files FossilOrigin-Name: 3c81e0ee05c46fa47f810af3c1fe91979e10ae9819bf93792e46335022e9618d --- src/cpt-lib | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cpt-lib b/src/cpt-lib index 9f1a5b8..9f28197 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -730,10 +730,15 @@ pkg_build() { cp -LRf "$repo_dir" "$pkg_dir/$pkg/$pkg_db/" # We never ever want this. Let's end the endless conflicts - # and remove it. This will be the only exception for a - # specific removal of this kind. + # and remove it. find "$pkg_dir/$pkg" -name charset.alias -exec rm -f {} + + # Remove libtool's '*.la' library files. This removes cross-build + # system conflicts that may arise. Build-systems change, libtool + # is getting deprecated, we don't want a package that depends on + # some package's '.la' files. + find "$pkg_dir/$pkg" -name '*.la' -exec rm -f {} + + log "$pkg" "Successfully built package" run_hook post-build "$pkg" "$pkg_dir/$pkg" -- cgit v1.2.3