mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
build-gnu.sh: Reduce time to build GNU coreutils (#9475)
This commit is contained in:
parent
824c5c7c93
commit
5fd26c0671
1 changed files with 3 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW
|
||||
# spell-checker:ignore baddecode submodules xstrtol distros ; (vars/env) SRCDIR vdir rcexp xpart dired OSTYPE ; (utils) gnproc greadlink gsed multihardlink texinfo CARGOFLAGS
|
||||
# spell-checker:ignore openat TOCTOU
|
||||
# spell-checker:ignore openat TOCTOU CFLAGS
|
||||
|
||||
set -e
|
||||
|
||||
|
|
@ -131,7 +131,8 @@ else
|
|||
# Disable useless checks
|
||||
"${SED}" -i 's|check-texinfo: $(syntax_checks)|check-texinfo:|' doc/local.mk
|
||||
./bootstrap --skip-po
|
||||
./configure --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
|
||||
# Use CFLAGS for best build time since we discard GNU coreutils
|
||||
CFLAGS="${CFLAGS} -pipe -O0 -s" ./configure --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
|
||||
"$([ "${SELINUX_ENABLED}" = 1 ] && echo --with-selinux || echo --without-selinux)"
|
||||
#Add timeout to to protect against hangs
|
||||
"${SED}" -i 's|^"\$@|'"${SYSTEM_TIMEOUT}"' 600 "\$@|' build-aux/test-driver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue