Set default MAKE=gmake on FreeBSD again

as an workaround for Ruby bug 16331: https://bugs.ruby-lang.org/issues/16331

Due to this bug, build will fail with FreeBSD's make after #1368.
The bug is already fixed in MRI upstream but GNU make is still required
when building older releases of Ruby. Use GNU make rather than switching
make/gmake depending of Ruby version.

See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241633
This commit is contained in:
Koichiro Iwao 2019-11-20 18:11:43 +09:00
parent 092b8dacea
commit 2fa12aa897
No known key found for this signature in database
GPG key ID: 9F72CDBC01BF10EB

View file

@ -1320,15 +1320,12 @@ fi
if [ -z "$MAKE" ]; then
if [ "FreeBSD" = "$(uname -s)" ]; then
if [ "$(echo $1 | sed 's/-.*$//')" = "jruby" ]; then
export MAKE="gmake"
else
if [ "$(uname -r | sed 's/[^[:digit:]].*//')" -lt 10 ]; then
export MAKE="gmake"
else
export MAKE="make"
fi
fi
# Workaround for Ruby bug 16331: https://bugs.ruby-lang.org/issues/16331
# Due to this bug, build will fail with FreeBSD's make after #1368
# The bug is already fixed in upstream but GNU make is still required
# when building older releases of Ruby. Use GNU make rather than switching
# depending of Ruby version.
export MAKE="gmake"
else
export MAKE="make"
fi