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