From: Sebastian Kemper Date: Fri, 2 Jun 2017 20:18:51 +0000 (+0200) Subject: freeswitch-stable: Fix mod_erlang_event build X-Git-Url: http://git.openwrt.org/?p=feed%2Ftelephony.git;a=commitdiff_plain;h=8e0aed47540173cc5ef5fc4c1bbfb29beeb0945b freeswitch-stable: Fix mod_erlang_event build - added a patch for erlang.m4 so mod_erlang_event finds the right lib to link to Signed-off-by: Sebastian Kemper --- diff --git a/net/freeswitch-stable/patches/150-erlang-m4.patch b/net/freeswitch-stable/patches/150-erlang-m4.patch new file mode 100644 index 0000000..893af86 --- /dev/null +++ b/net/freeswitch-stable/patches/150-erlang-m4.patch @@ -0,0 +1,23 @@ +--- a/build/config/erlang.m4 ++++ b/build/config/erlang.m4 +@@ -43,9 +43,20 @@ then + ERLANG_LDFLAGS="-L$ERLANG_LIBDIR $ERLANG_LDFLAGS" + LIBS="-L$ERLANG_LIBDIR $LIBS" + fi ++ ++ # ++ # Don't use the above ERLANG_LDFLAGS ++ # ++ ERLANG_LIBDIR="$STAGING_DIR/usr/lib" ++ ERLANG_LDFLAGS="-L$ERLANG_LIBDIR" ++ LIBS="-L$ERLANG_LIBDIR $LIBS" + AC_MSG_RESULT([$ERLANG_LIBDIR]) + + ERLANG_INCDIR=`$ERLANG -noshell -eval 'io:format("~n~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1` ++ # ++ # Don't use the above ERLANG_INCDIR ++ # ++ ERLANG_INCDIR="$STAGING_DIR/usr/include" + AC_MSG_CHECKING([erlang incdir]) + if test -z "`echo $ERLANG_INCDIR`" ; then + AC_MSG_ERROR([failed])