From b36b9afac4c9916dbb21fc71e10bfa6831da6da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Bac=C5=82awski?= Date: Thu, 10 Sep 2015 09:19:25 +0200 Subject: [PATCH] Fix issue with python-lhafile installation. --- toolchain-m68k | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/toolchain-m68k b/toolchain-m68k index f519aea..012d458 100755 --- a/toolchain-m68k +++ b/toolchain-m68k @@ -197,6 +197,24 @@ def build(): environ['LANG'] = 'C' environ['TERM'] = 'xterm' + find_executable('perl') + find_executable('patch') + find_executable('make') + find_executable('git') + + with cwd('{archives}'): + for url in URLS: + if type(url) == tuple: + url, name = url[0], url[1] + else: + name = path.basename(url) + fetch(name, url) + + unpack('python-lha', work_dir='{build}') + python_setup('python-lha') + + add_site_dir('{host}') + """ Make sure we always choose known compiler (from the distro) and not one in user's path that could shadow the original one. @@ -218,28 +236,10 @@ def build(): environ['CC'] = ' '.join([find_executable(CC), ARCH]) environ['CXX'] = ' '.join([find_executable(CXX), ARCH]) - find_executable('perl') - find_executable('patch') - find_executable('make') - find_executable('git') - environ['PATH'] = ":".join([path.join('{target}', 'bin'), path.join('{host}', 'bin'), environ['PATH']]) - add_site_dir('{host}') - - with cwd('{archives}'): - for url in URLS: - if type(url) == tuple: - url, name = url[0], url[1] - else: - name = path.basename(url) - fetch(name, url) - - unpack('python-lha', work_dir='{build}') - python_setup('python-lha') - unpack('{m4}') configure('{m4}', '--prefix={host}') make('{m4}')