GNOME Bugzilla – Bug 700066
CC is not passed to g-ir-scanner
Last modified: 2015-04-18 19:13:04 UTC
gobject-introspection\giscanner\sourcescanner.py", line 292 - scanner tries to get CC environmental variable, but it's not defined. Makefiles know the CC, but that isn't an envvar, so it isn't passed to the programs. Overriding g_ir_scanner in the .pc file (prepending CC="$(CC)" to it) solves the problem for me.
Another way to work around this is to call make like this: make INTROSPECTION_SCANNER_ENV=CC="\$(CC)"
Can we get a solution here? Maybe having it added to the Makefile.introspection? Having to add this to all the modules of the world is not very nice...
ping...
AFAIK, changes that fix this are slowly seeping into various GI'able pieces of software. Right now i'm only patching gtk+-2.x (by adding INTROSPECTION_SCANNER_ENV=... to Makefile.am in gdk and gtk).
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Ping? Another project has the same issue, it would be nice to just fix it once and forall.
Created attachment 300628 [details] [review] Makefile.introspection: pass *FLAGS to scanner Extends commit 92d9c38 to also pass CC to g-ir-scanner.
Created attachment 300629 [details] [review] Makefile.introspection: pass CC to scanner Extends commit 92d9c38 to also pass CC to g-ir-scanner.
(In reply to Dieter Verfaillie from comment #8) > Created attachment 300629 [details] [review] [review] > Makefile.introspection: pass CC to scanner > > Extends commit 92d9c38 to also pass CC to g-ir-scanner. Any chance to get this in? The patch seems fine to me.
The following fix has been pushed: 1f3db78 Makefile.introspection: pass CC to scanner (In reply to Ignacio Casal Quinteiro (nacho) from comment #9) > Any chance to get this in? The patch seems fine to me. Thanks for the review, that's the only reason this patch was on hold.
Created attachment 301908 [details] [review] Makefile.introspection: pass CC to scanner Extends commit 92d9c38 to also pass CC to g-ir-scanner.