Advertisement
darkxst

gi-r-scanner

Feb 24th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.91 KB | None | 0 0
  1. From cbe9fc0c5831248994d7a49d3ad7afc0b127dca1 Mon Sep 17 00:00:00 2001
  2. From: Tim Lunn <tim@feathertop.org>
  3. Date: Sun, 24 Feb 2013 17:34:56 +1100
  4. Subject: [PATCH] Makefile.introspection: filter out -include flags from CFLAGS
  5.  
  6. gi-r-scanner chokes when gir_CFLAGS have an '-include <header>',
  7. filter this out since it doesn't appear to be valid for the scanner
  8. but it perfectly a valid CFLAG.
  9. ---
  10. Makefile.introspection | 2 +-
  11.  1 file changed, 1 insertion(+), 1 deletion(-)
  12.  
  13. diff --git a/Makefile.introspection b/Makefile.introspection
  14. index 567d5e9..32d6570 100644
  15. --- a/Makefile.introspection
  16. +++ b/Makefile.introspection
  17. @@ -142,7 +142,7 @@ $(1): $$($(_gir_name)_FILES)
  18.       $(_gir_program) \
  19.       $(_gir_libraries) \
  20.       $($(_gir_name)_SCANNERFLAGS) \
  21. -     $($(_gir_name)_CFLAGS) \
  22. +     $(filter-out -include %.h,$($(_gir_name)_CFLAGS)) \
  23.       $($(_gir_name)_LDFLAGS) \
  24.       $$^ \
  25.       --output $(1)
  26. --
  27. 1.8.1.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement