Skip to content

Commit ac325f4

Browse files
committed
remove erl_interface references
The erl_interface library has been removed in OTP 23, so these changes remove references to this library from the project so that it can compile.
1 parent 8189497 commit ac325f4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

c_src/Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ BASEDIR := $(abspath $(CURDIR)/..)
66
PROJECT = e2qc_nif
77

88
ERTS_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s/erts-~s/include/\", [code:root_dir(), erlang:system_info(version)]).")
9-
ERL_INTERFACE_INCLUDE_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s\", [code:lib_dir(erl_interface, include)]).")
10-
ERL_INTERFACE_LIB_DIR ?= $(shell erl -noshell -s init stop -eval "io:format(\"~s\", [code:lib_dir(erl_interface, lib)]).")
119

1210
C_SRC_DIR = $(CURDIR)
1311
C_SRC_OUTPUT ?= $(CURDIR)/../priv/$(PROJECT).so
@@ -66,10 +64,10 @@ else ifeq ($(UNAME_SYS), Linux)
6664
CXXFLAGS ?= -O3 -std=c++11 -finline-functions -Wall -DOS_LINUX
6765
endif
6866

69-
CFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)
70-
CXXFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)
67+
CFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR)
68+
CXXFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR)
7169

72-
LDLIBS += -L $(ERL_INTERFACE_LIB_DIR) -lerl_interface -lei
70+
LDLIBS += -L $(ERL_INTERFACE_LIB_DIR) -lei
7371
LDFLAGS += -shared
7472

7573
# Verbosity.

0 commit comments

Comments
 (0)