From a336201b0675bfb4919a598f6b9223bc4f275b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Thu, 30 May 2019 00:00:02 +0000 Subject: [PATCH] build-crosstool-ng: use ./configure relative path Avoids build error in Ubuntu 16.04... --- build-crosstool-ng | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-crosstool-ng b/build-crosstool-ng index 329261f..7d476f8 100755 --- a/build-crosstool-ng +++ b/build-crosstool-ng @@ -38,7 +38,10 @@ Build crosstool-NG with Newlib for bare metal compilation ) self.sh.run_cmd( [ - os.path.join(self.env['crosstool_ng_source_copy_dir'], 'configure'), LF, + # abspath here makes Ubuntu 16.04 fail with: + # configure: error: source directory already configured; run "make distclean" there first + # after another build has been done. Don't ask me why. + os.path.join(os.curdir, 'configure'), LF, '--enable-local', LF, ], )