From 81af602dbac515dce24db43253255b3eb31c7568 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Mon, 29 May 2023 06:40:36 -0400 Subject: [PATCH] build: fix usage of init stop for erlang 26 Ref: https://github.com/erlang/otp/issues/6916 --- c_src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_src/Makefile b/c_src/Makefile index b66e88a..4596942 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -4,8 +4,8 @@ BASEDIR := $(abspath $(CURDIR)/..) PROJECT ?= $(notdir $(BASEDIR)) PROJECT := $(strip $(PROJECT)) -ERTS_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)]).") -ERLANG_ARCH ?= $(shell erl -noshell -s init stop -eval "io:format(\"~B\", [erlang:system_info({wordsize,external}) * 8]).") +ERTS_INCLUDE_DIR ?= $(shell erl -noshell -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)])." -s erlang halt) +ERLANG_ARCH ?= $(shell erl -noshell -eval "io:format(\"~B\", [erlang:system_info({wordsize,external}) * 8])." -s erlang halt) C_SRC_DIR = $(CURDIR) C_SRC_OUTPUT ?= $(CURDIR)/../priv/$(PROJECT).so