aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-lib
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-08-03 16:01:47 +0000
committermerakor <cem@ckyln.com>2020-08-03 16:01:47 +0000
commitfcad9cc30680eb397bdefaa90c2feb42d7547042 (patch)
treefef0ef2ede047dac347e391e4873330552ac4943 /src/cpt-lib
parentc060d828bfde3cc13dd79efcbb55aadfdcce4ecc (diff)
downloadcpt-fcad9cc30680eb397bdefaa90c2feb42d7547042.tar.gz
pkg_build(): remove libtool '*.la' files
FossilOrigin-Name: 3c81e0ee05c46fa47f810af3c1fe91979e10ae9819bf93792e46335022e9618d
Diffstat (limited to 'src/cpt-lib')
-rw-r--r--src/cpt-lib9
1 files 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"