Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Locate erlang includes on linux

  • Loading branch information...
commit 0579d11a13971b208803eca860d49a1217b9148e 1 parent 6afd90e
@srstrong srstrong authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Makefile
View
4 Makefile
@@ -11,7 +11,9 @@ ifeq ($(UNAME), Darwin)
LDFLAGS += -L$(ERL_DIR)/lib $(FFMPEG_STATIC_LIBS) $(FFMPEG_DYN_LIBS) -lz -lm -lpthread -framework CoreFoundation -framework VideoDecodeAcceleration -framework CoreVideo
endif
ifeq ($(UNAME), Linux)
- LDFLAGS += -Wl,-Bstatic $(FFMPEG_STATIC_LIBS) -Wl,-Bdynamic -lz $(FFMPEG_DYN_LIBS) -lm -lpthread
+ ERL_DIR = $(shell erl -noshell -eval 'io:format("~p~n", [code:lib_dir(erl_interface)])' -eval 'init:stop()')
+ CFLAGS += -I $(ERL_DIR)/include
+ LDFLAGS += -L$(ERL_DIR)/lib -Wl,-Bstatic $(FFMPEG_STATIC_LIBS) -Wl,-Bdynamic -lz $(FFMPEG_DYN_LIBS) -lm -lpthread
endif
.PHONY: default all clean
Please sign in to comment.
Something went wrong with that request. Please try again.