[Lunar-commits] <moonbase> Subject: libtool: add plugin to remove libtool archive files (*.la)

Auke Kok sofar at foo-projects.org
Thu Aug 19 06:00:44 CEST 2010


commit 1c75ebf280156b4a6a4bd18fe4283c1579055aab
Author: Auke Kok <sofar at foo-projects.org>
Date:   Thu Aug 19 06:00:44 2010 +0200

    Subject: libtool: add plugin to remove libtool archive files (*.la)
    
    these files are pretty harmful and removing these will prevent
    compile errors going forward. Example: the entire xcb problem would
    have not existed if this plugin would have existed back then
---
 libs/libtool/plugin.d/postbuild-libtool.plugin |   25 ++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/libs/libtool/plugin.d/postbuild-libtool.plugin b/libs/libtool/plugin.d/postbuild-libtool.plugin
new file mode 100644
index 0000000..0bfc466
--- /dev/null
+++ b/libs/libtool/plugin.d/postbuild-libtool.plugin
@@ -0,0 +1,25 @@
+#!/bin/bash
+#############################################################
+#                                                           #
+# postbuild-libtool.plugin - postbuild handling of libtool  #
+#                            archive files                  #
+#                                                           #
+#############################################################
+#                                                           #
+# Copyright 2010 by Auke Kok under GPLv2                    #
+#                                                           #
+#############################################################
+
+
+plugin_libtool_post_build()
+{
+	# find installed libtool archives, remove them
+	parse_iw | sort -u | filter "$LOCAL_EXCLUDED" | \
+	grep '.*/lib.*.la$' | xargs rm
+
+	# always return 2, failure or not
+	return 2
+}
+
+
+plugin_register BUILD_POST_BUILD plugin_libtool_post_build


More information about the Lunar-commits mailing list