mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix build of ossaudiodev in Linux/FreeBSD for Python 2.6 (#2049)
This is essentially the same fix as in pull request #2047, but it is applied from Python 2.6.6 to 2.6.9, and for `ossaudiodev` as well as the (deprecated) `linuxaudiodev`.
This commit is contained in:
parent
22e1aa6e9d
commit
f7450587dc
4 changed files with 68 additions and 4 deletions
|
@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
|
|||
|
||||
# Add paths specified in the environment variables LDFLAGS and
|
||||
# CPPFLAGS for header and library files.
|
||||
@@ -1443,14 +1443,13 @@
|
||||
|
||||
|
||||
# Platform-specific libraries
|
||||
- if platform == 'linux2':
|
||||
+ if platform.startswith('linux'):
|
||||
# Linux-specific modules
|
||||
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
|
||||
else:
|
||||
missing.append('linuxaudiodev')
|
||||
|
||||
- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||
- 'freebsd7', 'freebsd8'):
|
||||
+ if platform.startswith('linux') or platform.startswith('freebsd'):
|
||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||
else:
|
||||
missing.append('ossaudiodev')
|
||||
|
|
|
@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
|
|||
|
||||
# Add paths specified in the environment variables LDFLAGS and
|
||||
# CPPFLAGS for header and library files.
|
||||
@@ -1443,14 +1443,13 @@
|
||||
|
||||
|
||||
# Platform-specific libraries
|
||||
- if platform == 'linux2':
|
||||
+ if platform.startswith('linux'):
|
||||
# Linux-specific modules
|
||||
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
|
||||
else:
|
||||
missing.append('linuxaudiodev')
|
||||
|
||||
- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||
- 'freebsd7', 'freebsd8'):
|
||||
+ if platform.startswith('linux') or platform.startswith('freebsd'):
|
||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||
else:
|
||||
missing.append('ossaudiodev')
|
||||
|
|
|
@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
|
|||
|
||||
# Add paths specified in the environment variables LDFLAGS and
|
||||
# CPPFLAGS for header and library files.
|
||||
@@ -1443,14 +1443,13 @@
|
||||
|
||||
|
||||
# Platform-specific libraries
|
||||
- if platform == 'linux2':
|
||||
+ if platform.startswith('linux'):
|
||||
# Linux-specific modules
|
||||
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
|
||||
else:
|
||||
missing.append('linuxaudiodev')
|
||||
|
||||
- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||
- 'freebsd7', 'freebsd8'):
|
||||
+ if platform.startswith('linux') or platform.startswith('freebsd'):
|
||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||
else:
|
||||
missing.append('ossaudiodev')
|
||||
|
|
|
@ -44,4 +44,20 @@ diff -r -u setup.py setup.py
|
|||
|
||||
# Add paths specified in the environment variables LDFLAGS and
|
||||
# CPPFLAGS for header and library files.
|
||||
@@ -1443,14 +1443,13 @@
|
||||
|
||||
|
||||
# Platform-specific libraries
|
||||
- if platform == 'linux2':
|
||||
+ if platform.startswith('linux'):
|
||||
# Linux-specific modules
|
||||
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
|
||||
else:
|
||||
missing.append('linuxaudiodev')
|
||||
|
||||
- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
|
||||
- 'freebsd7', 'freebsd8'):
|
||||
+ if platform.startswith('linux') or platform.startswith('freebsd'):
|
||||
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
|
||||
else:
|
||||
missing.append('ossaudiodev')
|
||||
|
|
Loading…
Reference in a new issue