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.
This commit is contained in:
parent
7b56bae289
commit
4303aaa9b8
|
@ -1,4 +1,4 @@
|
||||||
import os.path, subprocess
|
import os.path, subprocess, sys
|
||||||
|
|
||||||
from build.project import Project
|
from build.project import Project
|
||||||
|
|
||||||
|
@ -15,7 +15,10 @@ class AutotoolsProject(Project):
|
||||||
def build(self, toolchain):
|
def build(self, toolchain):
|
||||||
src = self.unpack(toolchain)
|
src = self.unpack(toolchain)
|
||||||
if self.autogen:
|
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(['aclocal'], cwd=src)
|
||||||
subprocess.check_call(['automake', '--add-missing', '--force-missing', '--foreign'], cwd=src)
|
subprocess.check_call(['automake', '--add-missing', '--force-missing', '--foreign'], cwd=src)
|
||||||
subprocess.check_call(['autoconf'], cwd=src)
|
subprocess.check_call(['autoconf'], cwd=src)
|
||||||
|
|
Loading…
Reference in New Issue