From 7dcd3c16e36778c147b3e0e41756ab2f6c2f4073 Mon Sep 17 00:00:00 2001 From: Oka Prinarjaya Date: Sun, 9 Jun 2019 21:26:43 +0700 Subject: [PATCH] Surround ERTS_INCLUDE_DIR, ERL_INTERFACE_INCLUDE_DIR, ERL_INTERFACE_LIB_DIR with double quote char in order to be able support path with space char --- c_src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c_src/Makefile b/c_src/Makefile index d3c3767..92e661a 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -31,10 +31,10 @@ else ifeq ($(UNAME_SYS), Linux) CXXFLAGS ?= -O3 -finline-functions -Wall endif -CFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR) -CXXFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR) +CFLAGS += -fPIC -I "$(ERTS_INCLUDE_DIR)" -I "$(ERL_INTERFACE_INCLUDE_DIR)" +CXXFLAGS += -fPIC -I "$(ERTS_INCLUDE_DIR)" -I "$(ERL_INTERFACE_INCLUDE_DIR)" -LDLIBS += -L $(ERL_INTERFACE_LIB_DIR) -lerl_interface -lei +LDLIBS += -L "$(ERL_INTERFACE_LIB_DIR)" -lerl_interface -lei LDFLAGS += -shared # Verbosity.