Skip to content

Commit

Permalink
Merge branch 'lukas/erts/fix-gdb-tools-download' into maint
Browse files Browse the repository at this point in the history
* lukas/erts/fix-gdb-tools-download:
  erts: Fix download of gdb tools on bsd
  • Loading branch information
garazdawi committed Jan 29, 2025
2 parents b4982dd + bf2e4c7 commit aff392e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion erts/etc/unix/cerl.src
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,21 @@ install_gdb_tools ()

build_gdb_tools ()
{
(cd "$ERL_TOP"/erts/etc/common && make)
if command -v gmake > /dev/null; then
(cd "$ERL_TOP"/erts/etc/common && gmake)
else
(cd "$ERL_TOP"/erts/etc/common && make)
fi
}

## If ERL_TOP is not set, we try to figure it out from
## the location of cerl
if [ -z "$ERL_TOP" ]; then
CERL="$0"
ERL_TOP="$(dirname "$(dirname "$CERL")")"
export ERL_TOP
fi

# These are marked for export
export ROOTDIR
export PROGNAME
Expand Down

0 comments on commit aff392e

Please sign in to comment.