aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk/musl-libcap.patch
blob: 3a45d5455f9d3874c7254133673a5e062e977612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -ru asterisk-12.4.0.orig/configure.ac asterisk-12.4.0/configure.ac
--- asterisk-12.4.0.orig/configure.ac	2014-08-06 09:07:19.000000000 -0300
+++ asterisk-12.4.0/configure.ac	2014-08-06 09:10:16.350632198 -0300
@@ -1259,9 +1259,11 @@
   AST_EXT_LIB_CHECK([BFD], [bfd], [bfd_check_format], [bfd.h], [-ldl -liberty -lz])
 fi
 
-if test "x${OSARCH}" = "xlinux-gnu" ; then
+case "${OSARCH}" in
+linux*)
   AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
-fi
+  ;;
+esac
 
 AST_C_DEFINE_CHECK([DAHDI], [DAHDI_RESET_COUNTERS], [dahdi/user.h], [230])
 AST_C_DEFINE_CHECK([DAHDI], [DAHDI_DEFAULT_MTU_MRU], [dahdi/user.h], [220])
--- asterisk-13.3.1/main/Makefile.orig	2015-04-07 05:29:42.561354397 +0000
+++ asterisk-13.3.1/main/Makefile	2015-04-07 05:30:11.421884787 +0000
@@ -42,7 +42,7 @@
 AST_LIBS+=$(CRYPT_LIB)
 AST_LIBS+=$(AST_CLANG_BLOCKS_LIBS)
 
-ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc kfreebsd-gnu),)
+ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc linux-musl kfreebsd-gnu),)
   ifneq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),)
   AST_LIBS+=-ldl
   endif