summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"