From b6588aa6851fb220cedc387d21c51513ef8d67f4 Mon Sep 17 00:00:00 2001
From: Chris Larson <clarson@kergoth.com>
Date: Tue, 9 Nov 2004 00:27:17 +0000
Subject: Add a hack to the ccdv.oeclass that overrides the LIBTOOL variable in
 builds to make libtool get called with --silent.

BKrev: 41900ee5MQ6fKzr2fXAb_ZFH8eYD6g
---
 classes/ccdv.oeclass | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

(limited to 'classes')

diff --git a/classes/ccdv.oeclass b/classes/ccdv.oeclass
index 7fd814b451..6ebc7bf0c2 100644
--- a/classes/ccdv.oeclass
+++ b/classes/ccdv.oeclass
@@ -1,6 +1,16 @@
 DEPENDS =+ "ccdv-native"
-MAKE += "-s"
 CCDV = "ccdv"
 CC =+ "${CCDV}"
 BUILD_CC =+ "${CCDV}"
 CCLD =+ "${CCDV}"
+
+def quiet_libtool(oe,d):
+	deps = (oe.data.getVar('DEPENDS', d, 1) or "").split()
+	if 'libtool-cross' in deps:
+		return "'LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool --silent'"
+	elif 'libtool-native' in deps:
+		return "'LIBTOOL=${B}/${HOST_SYS}-libtool --silent'"
+	else:
+		return ""
+EXTRA_OEMAKE_append = " ${@quiet_libtool(oe,d)}"
+MAKE += "-s"
-- 
cgit v1.2.3