Skip to content

Commit

Permalink
sign off
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwel committed Apr 4, 2018
1 parent 8202deb commit 16a8e9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ else
endif

BASEDIR := $(abspath $(CURDIR)/..)
PRIVDIR := $(abspath $(CURDIR)/../priv)
PROJECT ?= $(notdir $(BASEDIR))
PROJECT := $(strip $(PROJECT))

Expand Down Expand Up @@ -67,17 +68,17 @@ CXXFLAGS ?= -O3 -finline-functions -Wall
#
# Compilation
#
CFLAGS += -I "$(ERTS_INCLUDE_DIR)" -I "$(ERL_INTERFACE_INCLUDE_DIR)" -I "libsass/include" -I "libsass"
CXXFLAGS += -I "$(ERTS_INCLUDE_DIR)" -I "$(ERL_INTERFACE_INCLUDE_DIR)" -I "libsass/include" "../priv/libsass.dll"
CFLAGS += -I "$(ERTS_INCLUDE_DIR)" -I "$(ERL_INTERFACE_INCLUDE_DIR)"
CXXFLAGS += -I "$(ERTS_INCLUDE_DIR)" -I "$(ERL_INTERFACE_INCLUDE_DIR)" -I "libsass/include" "$(PRIVDIR)/libsass$(SLEXT)"


LDLIBS += -L "$(ERL_INTERFACE_LIB_DIR)" -lerl_interface -lei
LDFLAGS += -shared

# $(info ${OS})
# $(info ${OSNAME})
# $(info ${CURDIR})
# $(info ${PROJECT})
$(info ${OS})
$(info ${OSNAME})
$(info ${CURDIR})
$(info ${PRIVDIR})
# $(info ${ERTS_INCLUDE_DIR})
# $(info ${ERL_INTERFACE_INCLUDE_DIR})
# $(info ${ERL_INTERFACE_LIB_DIR})
Expand Down
3 changes: 2 additions & 1 deletion src/erlsass.erl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ init() ->
case os:type() of
{win32, _Osname} ->
Path = os:getenv("PATH"),
os:putenv("PATH", Path ++ PrivDir ++ ";")
os:putenv("PATH", Path ++ PrivDir ++ ";");
_True -> ok
end,

SharedLib = filename:join(PrivDir, ?LIBNAME),
Expand Down

0 comments on commit 16a8e9e

Please sign in to comment.