Initial .bep and .patch files for erlang. These aren't yet working, but getting pretty far into the build before failing for what

may be missing ipv6 functions.  Further changes to the .bep and/or patch file will be required to get this one working.
This commit is contained in:
Scott McCreary
2010-10-04 23:59:10 +00:00
parent 1f3f5f3885
commit a57d65b673
2 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
diff -urN otp_src_R14B/lib/test_server/src/configure.in otp_src_R14B-haiku/lib/test_server/src/configure.in
--- otp_src_R14B/lib/test_server/src/configure.in 2010-09-13 17:00:22.037748736 +0000
+++ otp_src_R14B-haiku/lib/test_server/src/configure.in 2010-10-04 13:15:31.969932800 +0000
@@ -279,6 +279,10 @@
LIBS="$LIBS -lsocket -lnsl"
AC_CHECK_FUNC(accept, erl_checkNsl=0, [LIBS=$tk_oldLibs])
fi
+
+# Haiku uses -lnetwork instead of -lsocket
+AC_CHECK_LIB(network, socket, LIBS="$LIBS -lnetwork", LIBS="$LIBS")
+
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]))
dnl Checks for library functions.