summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:27:17 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:27:17 +0000
commitb6588aa6851fb220cedc387d21c51513ef8d67f4 (patch)
treee5b76b63275756b507bd5b08238022fed63c5c9d
parentdbbcbe33ce88fdcf1b3379750fe58d0d32fd16b2 (diff)
Add a hack to the ccdv.oeclass that overrides the LIBTOOL variable in builds to make libtool get called with --silent.
BKrev: 41900ee5MQ6fKzr2fXAb_ZFH8eYD6g
-rw-r--r--classes/ccdv.oeclass12
1 files changed, 11 insertions, 1 deletions
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"