summaryrefslogtreecommitdiff
path: root/devel/py-meson/patches/patch-mesonbuild_environment.py
blob: a9a28067ef98b9f646fc4d994217ea8c2becc301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-mesonbuild_environment.py,v 1.1 2018/05/14 09:43:15 jperkin Exp $

Support SunOS ar.

--- mesonbuild/environment.py.orig	2018-02-20 21:48:57.000000000 +0000
+++ mesonbuild/environment.py
@@ -779,6 +779,8 @@ class Environment:
                 return ArLinker(linker)
             if p.returncode == 1 and err.startswith('usage'): # OSX
                 return ArLinker(linker)
+            if p.returncode == 1 and err.startswith('ar: bad option'): # SunOS
+                return ArLinker(linker)
         self._handle_exceptions(popen_exceptions, linkers, 'linker')
         raise EnvironmentException('Unknown static linker "%s"' % ' '.join(linkers))