Add a hack to the ccdv.oeclass that overrides the LIBTOOL variable in builds to make...
authorChris Larson <clarson@kergoth.com>
Tue, 9 Nov 2004 00:27:17 +0000 (00:27 +0000)
committerChris Larson <clarson@kergoth.com>
Tue, 9 Nov 2004 00:27:17 +0000 (00:27 +0000)
BKrev: 41900ee5MQ6fKzr2fXAb_ZFH8eYD6g

classes/ccdv.oeclass

index 7fd814b..6ebc7bf 100644 (file)
@@ -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"