summaryrefslogtreecommitdiff
path: root/libgeoclue
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-05-30 16:10:35 -0400
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2016-05-30 22:14:15 +0100
commit0827ce8851b0d613adeecab2b29542c50aae17e0 (patch)
tree569bfd31bb6a47f43757d41de41bb2947590dc88 /libgeoclue
parent88f3ade6f13d9822c03b1bf1636aa77ae7534080 (diff)
downloadgeoclue-0827ce8851b0d613adeecab2b29542c50aae17e0.tar.gz
lib: Define CC and other variables for g-ir-scanner
This ensures g-ir-scanner uses the configured compiler. Fixes the build in GContinuous, which is currently somewhat broken in that `/usr/bin/cc` is a cross compiler by default. But this propagation is the correct thing to do always. A similar patch landed in GStreamer.
Diffstat (limited to 'libgeoclue')
-rw-r--r--libgeoclue/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/libgeoclue/Makefile.am b/libgeoclue/Makefile.am
index 2acf711..2d40a3c 100644
--- a/libgeoclue/Makefile.am
+++ b/libgeoclue/Makefile.am
@@ -87,7 +87,13 @@ typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = Geoclue-2.0.typelib
Geoclue-2.0.gir: $(libgeoclue_2_la_SOURCES) $(geoclue_include_HEADERS)
- $(AM_V_GEN)$(INTROSPECTION_SCANNER) -v \
+ $(AM_V_GEN) env CPPFLAGS="$(CPPFLAGS)" \
+ CFLAGS="$(CFLAGS)" \
+ LDFLAGS="$(LDFLAGS)" \
+ CC="$(CC)" \
+ PKG_CONFIG="$(PKG_CONFIG)" \
+ DLLTOOL="$(DLLTOOL)" \
+ $(INTROSPECTION_SCANNER) -v \
--warn-all \
--namespace Geoclue \
--identifier-prefix=GClue \