summaryrefslogtreecommitdiff
path: root/include/autotools.mk
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2010-12-04 13:44:43 +0000
committerMirko Vogt <mirko@openwrt.org>2010-12-04 13:44:43 +0000
commit9a18fff28e219aec445a551508460900e60b729b (patch)
treea49ddc46e708b5895d67a1ac3d68e06a8b2db348 /include/autotools.mk
parentcd221dca4b147d696053a832f6b7fec544cd4680 (diff)
downloadmtk-20170518-9a18fff28e219aec445a551508460900e60b729b.zip
mtk-20170518-9a18fff28e219aec445a551508460900e60b729b.tar.gz
mtk-20170518-9a18fff28e219aec445a551508460900e60b729b.tar.bz2
ensure accidentally installed *.la-files (into $STAGING_DIR) are going to be removed afterwards - this actually should be done within respective package-Makefiles itself, however they need to stay compatible with libtool v1.5.x which is used in backfire, since it (may) require those files
SVN-Revision: 24241
Diffstat (limited to 'include/autotools.mk')
-rw-r--r--include/autotools.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/autotools.mk b/include/autotools.mk
index 7e251ea..2022747 100644
--- a/include/autotools.mk
+++ b/include/autotools.mk
@@ -49,6 +49,14 @@ define remove_version_check
fi
endef
+# delete *.la-files from staging_dir - we can not yet remove respective lines within all package
+# Makefiles, since backfire still uses libtool v1.5.x which (may) require those files
+define libtool_remove_files
+ find $(1) -name '*.la' | $(XARGS) rm -f
+endef
+
+Hooks/InstallDev/Post += libtool_remove_files
+
# XXX the libtool fixups got deactivated in the course of switching to libtool2 in trunk XXX
# ifneq ($(filter libtool,$(PKG_FIXUP)),)
# PKG_BUILD_DEPENDS += libtool