build: touch intl/plural.c to work around known bug

This commit is contained in:
Lephenixnoir 2021-03-18 10:25:51 +01:00
parent 75f209c4c9
commit 12ec54c78e
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@
source util.sh
cd build
# Number of processor core
# Number of processor cores
if [[ $(uname) == "OpenBSD" ]]; then
cores=$(sysctl -n hw.ncpu)
else

View File

@ -91,6 +91,12 @@ fi
echo "$TAG Extracting $ARCHIVE..."
unxz -c < $ARCHIVE | tar -xf -
# Touch intl/plural.c to avoid regenerating it from intl/plural.y with recent
# versions of bison, which is subject to the following known bug.
# * https://sourceware.org/bugzilla/show_bug.cgi?id=22941
# * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92008
touch binutils-$VERSION/intl/plural.c
# Create build folder
[[ -d "build" ]] && rm -rf build