diff options
Diffstat (limited to 'debian/patches/erlang.patch')
-rw-r--r-- | debian/patches/erlang.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/erlang.patch b/debian/patches/erlang.patch new file mode 100644 index 0000000..9d45561 --- /dev/null +++ b/debian/patches/erlang.patch @@ -0,0 +1,39 @@ +Index: apl-1.8+20220707+r1580/erlang/Makefile.am +=================================================================== +--- apl-1.8+20220707+r1580.orig/erlang/Makefile.am ++++ apl-1.8+20220707+r1580/erlang/Makefile.am +@@ -8,7 +8,7 @@ endif # if DEVELOP + pkglib_LTLIBRARIES = liberlang_APL_nif.la + liberlang_APL_nif_la_SOURCES = erlang_APL_nif.c README apl_example.erl + EXTRA_liberlang_APL_nif_la_SOURCES = apl.erl apl_example.erl +-liberlang_APL_nif_la_CFLAGS = $(AM_CFLAGS) -I $(abs_top_srcdir) -fpic -shared ++liberlang_APL_nif_la_CFLAGS = $(AM_CFLAGS) -I $(abs_top_srcdir)/src -fpic -shared + liberlang_APL_nif_la_CFLAGS += -I $(pkgincludedir) # e.g. /usr/local/include/apl + liberlang_APL_nif_la_CFLAGS += -I $(pkgincludedir)/.. # e.g. /usr/local/include + liberlang_APL_nif_la_LDFLAGS = -avoid-version -export-dynamic -E +Index: apl-1.8+20220707+r1580/erlang/erlang_APL_nif.c +=================================================================== +--- apl-1.8+20220707+r1580.orig/erlang/erlang_APL_nif.c ++++ apl-1.8+20220707+r1580/erlang/erlang_APL_nif.c +@@ -25,7 +25,7 @@ + #include <stdio.h> + #include <string.h> + #include <erl_nif.h> +-#include <apl/libapl.h> ++#include "libapl.h" + + #if ERL_NIF_MAJOR_VERSION == 2 && ERL_NIF_MINOR_VERSION >= 7 /* see erl_nif.c:3277 */ + # define HAVE_DIRTY +Index: apl-1.8+20220707+r1580/erlang/apl.erl.in +=================================================================== +--- apl-1.8+20220707+r1580.orig/erlang/apl.erl.in ++++ apl-1.8+20220707+r1580/erlang/apl.erl.in +@@ -36,7 +36,7 @@ + fix_function_ucs/1, set_variable/3, + eval_mux/5, e2c/1, e2a/1]). + +-init() -> erlang:load_nif("@prefix@/lib/@PACKAGE@/erlang_APL_nif", 0). ++init() -> erlang:load_nif("@libdir@/@PACKAGE@/erlang_APL_nif", 0). + + % dummy implementations for the functions defined in erlang_APL_nif.c... + % |