File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ BASEDIR := $(abspath $(CURDIR)/..)
66PROJECT = e2qc_nif
77
88ERTS_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
1210C_SRC_DIR = $(CURDIR )
1311C_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
6765endif
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
7371LDFLAGS += -shared
7472
7573# Verbosity.
You can’t perform that action at this time.
0 commit comments