diff options
author | Alexey Neyman <stilor@att.net> | 2019-02-18 18:22:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-18 18:22:17 (GMT) |
commit | 7d621cd831e4fb015fa151437051192135337006 (patch) | |
tree | 7f1313ccc9112cb0bc1a231a33c5344e54ec2c94 /scripts/crosstool-NG.sh | |
parent | fb744d81588395a97cee951a151a56501a500e42 (diff) | |
parent | 8a61f74f38e33166f6be0dde0cae82cfe055c3bf (diff) |
Merge pull request #1142 from stilor/rc2-fixes
Fixes for regressions in 1.24.0-rc1
Diffstat (limited to 'scripts/crosstool-NG.sh')
-rw-r--r-- | scripts/crosstool-NG.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh index b15a488..2e60f20 100644 --- a/scripts/crosstool-NG.sh +++ b/scripts/crosstool-NG.sh @@ -102,6 +102,14 @@ for d in \ esac done +n_open_files=$(ulimit -n) +if [ "${n_open_files}" -lt 2048 ]; then + # Newer ld seems to keep a lot of open file descriptors, hitting the default limit + # (1024) for example during uClibc-ng link. + CT_DoLog WARN "Number of open files ${n_open_files} may not be sufficient to build the toolchain; increasing to 2048" + ulimit -n 2048 +fi + # Where will we work? CT_WORK_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/.build}" CT_BUILD_DIR="${CT_BUILD_TOP_DIR}/build" |