g-i: pass compiler env to g-ir-scanner
authorTim-Philipp Müller <tim@centricular.com>
Wed, 25 May 2016 09:28:43 +0000 (10:28 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 25 May 2016 09:28:43 +0000 (10:28 +0100)
It's what introspection.mak does as well. Should
fix spurious build failures on gnome-continuous
(caused by g-ir-scanner getting compiler details
via python which is broken in some environments
so passing the compiler details bypasses that).

gst/rtsp-server/Makefile.am

index 4f6ea8f..224b48b 100644 (file)
@@ -72,6 +72,7 @@ gir_sources=$(patsubst %,$(srcdir)/%, $(libgstrtspserver_@GST_API_VERSION@_la_SO
 
 GstRtspServer-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstrtspserver-@GST_API_VERSION@.la
        $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
+               CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
                $(INTROSPECTION_SCANNER) -v --namespace GstRtspServer \
                --nsversion=@GST_API_VERSION@ \
                --strip-prefix=Gst \