[gobject-introspection] Makefile.introspection: add support for gir_LDFLAGS



commit d179ed8d8b0bd128c357631ca37da4d2a486987f
Author: Steve Frécinaux <code istique net>
Date:   Mon Jun 7 19:58:57 2010 +0200

    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

 Makefile.introspection |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.introspection b/Makefile.introspection
index b23ac02..c018f1d 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]