Skip to content

Commit

Permalink
Merge pull request #917 from nodenv/pull-ruby-build
Browse files Browse the repository at this point in the history
pull ruby build
  • Loading branch information
jasonkarns authored Jun 3, 2024
2 parents c7e0e9e + bda33c4 commit 6fd7862
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/node-build
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ is_mac() {
[ $# -eq 0 ] || test "$(osx_version)" "$@"
}

is_freebsd() {
[ "$(uname -s)" = "FreeBSD" ]
}

freebsd_package_prefix() {
local package="$1"
pkg info --prefix "$package" 2>/dev/null | cut -wf2
}

# 9.1 -> 901
# 10.9 -> 1009
# 10.10 -> 1010
Expand Down Expand Up @@ -972,7 +981,7 @@ if [ -n "$noexec" ]; then
fi

if [ -z "$MAKE" ]; then
if [ "FreeBSD" = "$(uname -s)" ]; then
if is_freebsd; then
# node needs gmake on FreeBSD : https://github.com/nodejs/node/blob/0229e378e80948428cf7baa7b176939e879497cc/BSDmakefile#L7
export MAKE="gmake"
else
Expand Down

0 comments on commit 6fd7862

Please sign in to comment.