summaryrefslogtreecommitdiff
path: root/Makefile.introspection
diff options
context:
space:
mode:
authorSteve Frécinaux <code@istique.net>2010-06-07 19:58:57 +0200
committerSteve Frécinaux <code@istique.net>2010-06-07 20:21:16 +0200
commitd179ed8d8b0bd128c357631ca37da4d2a486987f (patch)
treec9ac1c000c8f08318db7cdc53ceedb7079d3c6ad /Makefile.introspection
parent0c550391b29da17446e22cebb1ccbacf8561983d (diff)
downloadgobject-introspection-d179ed8d8b0bd128c357631ca37da4d2a486987f.tar.gz
Makefile.introspection: add support for gir_LDFLAGS
This allows specifying LDFLAGS for the introspection scanner. LDFLAGS are currently just appended to the CFLAGS as the current scanner doesn't make the difference between both, but it looked wrong to include LDFLAGS in the middle of CFLAGS for g-ir-scanner. https://bugzilla.gnome.org/show_bug.cgi?id=620875
Diffstat (limited to 'Makefile.introspection')
-rw-r--r--Makefile.introspection2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.introspection b/Makefile.introspection
index b23ac020..c018f1d9 100644
--- a/Makefile.introspection
+++ b/Makefile.introspection
@@ -96,6 +96,7 @@ _gir_silent_compiler_0 = @echo " GICOMP $(1)";
# LIBTOOL - Command to invoke libtool, usually set by automake
# SCANNERFLAGS - Flags to pass in to the scanner, see g-ir-scanner(1) for a list
# CFLAGS - Flags to pass in to the parser when scanning headers
+# LDFLAGS - Linker flags used by the scanner
# PACKAGES - list of pkg-config names which cflags are required to parse
# the headers of this gir
# INCLUDES - Gir files to include without the .gir suffix, for instance
@@ -125,6 +126,7 @@ $(1): $$($(_gir_name)_FILES)
$(_gir_includes) \
$($(_gir_name)_SCANNERFLAGS) \
$($(_gir_name)_CFLAGS) \
+ $($(_gir_name)_LDFLAGS) \
$$^ \
--output $(1)
endef