Skip to content

Commit 5d926c9

Browse files
authored
Fix cross compiling (#37)
* Fix cross compiling * Disable auto loading of nifs
1 parent a0003fd commit 5d926c9

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ READER_SOURCES = $(XAV_DIR)/xav_reader.c $(XAV_DIR)/reader.c $(XAV_DIR)/video_co
2525
VIDEO_CONVERTER_HEADERS = $(XAV_DIR)/xav_video_converter.h $(XAV_DIR)/video_converter.h $(XAV_DIR)/utils.h
2626
VIDEO_CONVERTER_SOURCES = $(XAV_DIR)/xav_video_converter.c $(XAV_DIR)/video_converter.c $(XAV_DIR)/utils.c
2727

28-
CFLAGS = $(XAV_DEBUG_LOGS) -fPIC -shared
28+
CFLAGS += $(XAV_DEBUG_LOGS) -fPIC -shared
2929
IFLAGS = -I$(ERTS_INCLUDE_DIR) -I$(XAV_DIR)
3030
LDFLAGS = -lavcodec -lswscale -lavutil -lavformat -lavdevice -lswresample
3131

lib/xav/decoder_nif.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
defmodule Xav.Decoder.NIF do
22
@moduledoc false
33

4+
@compile {:autoload, false}
45
@on_load :__on_load__
56

67
def __on_load__ do

lib/xav/encoder_nif.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
defmodule Xav.Encoder.NIF do
22
@moduledoc false
33

4+
@compile {:autoload, false}
45
@on_load :__on_load__
56

67
def __on_load__ do

lib/xav/reader_nif.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
defmodule Xav.Reader.NIF do
22
@moduledoc false
33

4+
@compile {:autoload, false}
45
@on_load :__on_load__
56

67
def __on_load__ do

lib/xav/video_converter_nif.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
defmodule Xav.VideoConverter.NIF do
22
@moduledoc false
33

4+
@compile {:autoload, false}
45
@on_load :__on_load__
56

67
def __on_load__ do

0 commit comments

Comments
 (0)