From a00bf38481e89675cd4616cab7bddb1854d5980b Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 23 Feb 2008 21:33:46 +0000 Subject: [PATCH] libtool: Changed it's global integration to remove .la file after every cross-compilation --- base/libtool/parse-config | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/base/libtool/parse-config b/base/libtool/parse-config index cb78e4f4d..748af9e38 100644 --- a/base/libtool/parse-config +++ b/base/libtool/parse-config @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../libtool/parse-config -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2008 The OpenSDE Project # Copyright (C) 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -13,6 +13,12 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +libtool_remove_la() +{ + echo "Removing .la files..." + grep '\.la$' $builddir/flist.txt | xargs rm -fv "$root/{}" +} + # Some packges have outdated libtool that e.g. does not handle lib64. The # LIBTOOL-QUIRK flag allows automated updating of those files. @@ -102,3 +108,7 @@ if ! hasflag NO-LIBTOOL-FIX; then #hook_add premake 7 libtool_final_check fi +if ! atstage native; then + hook_add postflist 5 libtool_remove_la +fi +