mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-11-23 12:20:57 +01:00
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:
parent
092b8dacea
commit
2fa12aa897
1 changed files with 6 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue