Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rock-master-19.06-typelib (0.20190208-1~jessie) unstable; urgency=low
 .
   * Package automatically built using 'apaka'
   * repository: github:/orocos-toolchain/typelib.git
   * branch: refs/heads/master
   * commit: e89ab63501853a73638d2bd0cfa4859c720e0acb
   * tag:
Author: Packaging Daemon <rock-dev@dfki.de>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-01-28

--- rock-master-19.06-typelib-0.20190208.orig/bindings/ruby/lib/typelib/gccxml.rb
+++ rock-master-19.06-typelib-0.20190208/bindings/ruby/lib/typelib/gccxml.rb
@@ -1054,6 +1054,8 @@ module Typelib
                 if options[:castxml]
                     call = [castxml_binary_name, "--castxml-gccxml", "-E", *includes, *defines, *rawflags, *castxml_default_options, io.path]
                 else
+                    rawflags.delete_if { |x| x =~ /-std=/ || x =~ /-pthread/  }
+                    puts "#{__FILE__} gccxml --preprocess tries to handle rawflags: #{rawflags}"
                     call = [gcc_binary_name, "--preprocess", *includes, *defines, *rawflags, *gccxml_default_options, io.path]
                 end
 
