diff options
Diffstat (limited to 'devel/gobject-introspection/patches/patch-giscanner_dumper.py')
-rw-r--r-- | devel/gobject-introspection/patches/patch-giscanner_dumper.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/gobject-introspection/patches/patch-giscanner_dumper.py b/devel/gobject-introspection/patches/patch-giscanner_dumper.py new file mode 100644 index 00000000000..8011c4bfcf9 --- /dev/null +++ b/devel/gobject-introspection/patches/patch-giscanner_dumper.py @@ -0,0 +1,18 @@ +$NetBSD: patch-giscanner_dumper.py,v 1.1 2013/05/15 15:46:52 adam Exp $ + +Don't treat 'clang' as Visual C++ compiler. + +--- work/gobject-introspection-1.36.0//giscanner/dumper.py.orig 2013-05-15 15:30:07.000000000 +0000 ++++ work/gobject-introspection-1.36.0//giscanner/dumper.py +@@ -86,11 +86,6 @@ class DumpCompiler(object): + self._linker_cmd = os.environ.get('CC', self._compiler_cmd) + self._pkgconfig_cmd = os.environ.get('PKG_CONFIG', 'pkg-config') + self._pkgconfig_msvc_flags = '' +- # Enable the --msvc-syntax pkg-config flag when +- # the Microsoft compiler is used +- # (This is the other way to check whether Visual C++ is used subsequently) +- if 'cl' in self._compiler_cmd: +- self._pkgconfig_msvc_flags = '--msvc-syntax' + self._uninst_srcdir = os.environ.get( + 'UNINSTALLED_INTROSPECTION_SRCDIR') + self._packages = ['gio-2.0 gmodule-2.0'] |