summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2013-03-28 11:49:01 +0100
committerJasper Lievisse Adriaanse <jasper@humppa.nl>2013-03-28 11:49:01 +0100
commit49b80bb567115b95c1051d2f01da7679e4e08154 (patch)
tree284b1da48a373ca65757189e2aa68b1e4ba313ff
parent0e708e9fb76b53f41422360f502b873e88baac41 (diff)
downloadgobject-introspection-49b80bb567115b95c1051d2f01da7679e4e08154.tar.gz
Unbreak giscanner on OpenBSD.
Commit 9a1e0c63c13f3567e75553d2d07dd914d5b81287 broke this as os.name doesn't return 'OpenBSD', but 'posix' https://bugzilla.gnome.org/show_bug.cgi?id=696765
-rw-r--r--giscanner/shlibs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index 6c583a4b..4f622db3 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -68,7 +68,7 @@ def _resolve_non_libtool(options, binary, libraries):
if not libraries:
return []
- if os.name == 'OpenBSD':
+ if platform.platform().startswith('OpenBSD'):
# Hack for OpenBSD when using the ports' libtool which uses slightly
# different directories to store the libraries in. So rewite binary.args[0]
# by inserting '.libs/'.