diff --git a/c_src/Makefile b/c_src/Makefile index f159e48..d28e4c5 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -20,7 +20,7 @@ endif # Project specific C compiler/flags. ifeq ($(ERTS_INCLUDE_DIR),) - ERTS_INCLUDE_DIR := $(shell "$(ERL)" -noshell -s init stop -eval "io:format(\"~ts/erts-~ts/include/\", [code:root_dir(), erlang:system_info(version)]).") + ERTS_INCLUDE_DIR := $(shell "$(ERL)" -noshell -eval "io:format(\"~ts/erts-~ts/include/\", [code:root_dir(), erlang:system_info(version)])." -s erlang halt) endif CFLAGS += -std=c11 -fPIC -I $(ERTS_INCLUDE_DIR) @@ -64,4 +64,4 @@ _build/: mkdir -p "$@" $(BASEDIR)/priv/: - mkdir -p "$@" \ No newline at end of file + mkdir -p "$@"