Browse Source

Copy newer config.sub and config.guess to autotools based build system

Makes sure it actually supports the Android toolchain
zrythm
Sebastian Dröge 11 years ago
parent
commit
d48d028366
  1. 17
      cerbero/build/build.py
  2. 1530
      data/autotools/config.guess
  3. 1782
      data/autotools/config.sub

17
cerbero/build/build.py

@ -20,7 +20,8 @@ import os @@ -20,7 +20,8 @@ import os
from cerbero.config import Platform
from cerbero.utils import shell, to_unixpath
from cerbero.utils import messages as m
import shutil
class Build (object):
'''
@ -204,6 +205,20 @@ class Autotools (MakefilesBase): @@ -204,6 +205,20 @@ class Autotools (MakefilesBase):
supports_cache_variables = True
def configure(self):
files = shell.check_call('find %s -type f -name config.guess' % self.make_dir).split('\n')
files.remove('')
for f in files:
o = os.path.join(self.config._relative_path ('data'), 'autotools', 'config.guess')
m.action("copying %s to %s" % (o, f))
shutil.copy(o, f)
files = shell.check_call('find %s -type f -name config.sub' % self.make_dir).split('\n')
files.remove('')
for f in files:
o = os.path.join(self.config._relative_path ('data'), 'autotools', 'config.sub')
m.action("copying %s to %s" % (o, f))
shutil.copy(o, f)
if self.supports_non_src_build:
self.config_sh = os.path.join(self.repo_dir, self.config_sh)
# skip configure if we are already configured

1530
data/autotools/config.guess vendored

File diff suppressed because it is too large Load Diff

1782
data/autotools/config.sub vendored

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save