1
30kfreebsd.diff by Aurelien Jarno <aurel32@debian.org>
2
and Sergei Golovan <sgolovan@debian.org>
4
Defines GNU macros not only for Linux but also for any system
5
with 'gnu' substring in OS name. Fixes FTBFS on GNU/kfreebsd.
7
Also, allows to build erlang regexp driver for common_test application.
9
--- erlang-12.b.3-dfsg.orig/erts/configure.in
10
+++ erlang-12.b.3-dfsg/erts/configure.in
13
dnl NOTE: CPPFLAGS will be included in CFLAGS at the end
15
- linux*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE";;
16
+ linux*|*gnu*) CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE";;
18
# The ethread library requires _WIN32_WINNT of at least 0x0403.
19
# -D_WIN32_WINNT=* from CPPFLAGS is saved in ETHR_DEFS.
22
enable_child_waiter_thread=yes
26
AC_DEFINE(USE_RECURSIVE_MALLOC_MUTEX,[1],
27
[Define if malloc should use a recursive mutex])
28
AC_MSG_CHECKING([whether dlopen() needs to be called before first call to dlerror()])
29
--- erlang-12.b.3-dfsg.orig/lib/common_test/Makefile
30
+++ erlang-12.b.3-dfsg/lib/common_test/Makefile
32
ifeq ($(findstring solaris,$(TARGET)),solaris)
33
SUB_DIRECTORIES = doc/src src c_src priv
35
+ifeq ($(findstring kfreebsd,$(TARGET)),kfreebsd)
36
+SUB_DIRECTORIES = doc/src src c_src priv
38
SUB_DIRECTORIES = doc/src src priv
44
VSN = $(COMMON_TEST_VSN)
45
--- erlang-12.b.3-dfsg.orig/lib/common_test/priv/Makefile.in
46
+++ erlang-12.b.3-dfsg/lib/common_test/priv/Makefile.in
48
ifeq ($(findstring solaris,$(TARGET)),solaris)
51
+ifeq ($(findstring kfreebsd,$(TARGET)),kfreebsd)
59
ifneq ($(findstring win32,$(TARGET)),win32)