Permalink
Browse files

Locate erlang includes on linux

  • Loading branch information...
1 parent baa8a0a commit 731b99045193513adfc97cd74376d630081963e0 @srstrong srstrong committed Feb 1, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 Makefile
View
@@ -11,7 +11,10 @@ ifeq ($(UNAME), Darwin)
MAKE_TARGET = ar rcs $(TARGET) $(OBJECTS)
endif
ifeq ($(UNAME), Linux)
+ ERL_DIR = $(shell erl -noshell -eval 'io:format("~p~n", [code:lib_dir(erl_interface)])' -eval 'init:stop()')
TARGET = priv/libid3as_common.a
+ CFLAGS += -I $(ERL_DIR)/include
+ LDFLAGS += -L /usr/local/lib -L $(ERL_DIR)/lib -l ei
MAKE_TARGET = ar rcs $(TARGET) $(OBJECTS)
endif

0 comments on commit 731b990

Please sign in to comment.