summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorFelix Hädicke <felixhaedicke@web.de>2015-11-30 23:47:28 +0100
committerMax Kellermann <max@musicpd.org>2018-01-05 07:55:59 +0100
commit4303aaa9b8430ab0fa3f58e8b9f5d1cf7b115473 (patch)
treef081a4a4e07a5a148538d59c12a9a0c348694609 /python
parent7b56bae289dd82bb24f597f8f98037bb8f3fbaf9 (diff)
build/python: use "glibtoolize", not "libtoolize" when compiling on OS X
On OS X, the "libtoolize" command is some Apple tool. The libtoolize we want is named "glibtoolize" in Homebrew.
Diffstat (limited to 'python')
-rw-r--r--python/build/autotools.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/build/autotools.py b/python/build/autotools.py
index d9a1f156b..55a5fc067 100644
--- a/python/build/autotools.py
+++ b/python/build/autotools.py
@@ -1,4 +1,4 @@
-import os.path, subprocess
+import os.path, subprocess, sys
from build.project import Project
@@ -15,7 +15,10 @@ class AutotoolsProject(Project):
def build(self, toolchain):
src = self.unpack(toolchain)
if self.autogen:
- subprocess.check_call(['libtoolize', '--force'], cwd=src)
+ if sys.platform == 'darwin':
+ subprocess.check_call(['glibtoolize', '--force'], cwd=src)
+ else:
+ subprocess.check_call(['libtoolize', '--force'], cwd=src)
subprocess.check_call(['aclocal'], cwd=src)
subprocess.check_call(['automake', '--add-missing', '--force-missing', '--foreign'], cwd=src)
subprocess.check_call(['autoconf'], cwd=src)