diff options
author | Liong Sauw Ming <ming@teluu.com> | 2012-08-20 06:01:41 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2012-08-20 06:01:41 +0000 |
commit | 88c753faf08efaa247149be47f970f5e389c3180 (patch) | |
tree | f52eaad3450a4e1652483dbb7f8c748c0ab1e16d | |
parent | a8dde96e4c064b833676120093b9b782078486a6 (diff) |
Re #1559: Add support for OS X version after 10.7.x
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4232 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip-apps/src/python/setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjsip-apps/src/python/setup.py b/pjsip-apps/src/python/setup.py index 6e3618d5..69a98594 100644 --- a/pjsip-apps/src/python/setup.py +++ b/pjsip-apps/src/python/setup.py @@ -87,8 +87,9 @@ f.close() if platform.system() == 'Darwin': extra_link_args = ["-framework", "CoreFoundation", "-framework", "AudioToolbox"] - # OS X Lion support - if platform.mac_ver()[0].startswith("10.7"): + version = platform.mac_ver()[0].split(".") + # OS X Lion (10.7.x) or above support + if version[0] == '10' and int(version[1]) >= 7: extra_link_args += ["-framework", "AudioUnit"] else: extra_link_args = [] |