summaryrefslogtreecommitdiffstats
path: root/extra/asterisk/asterisk-02-1.6.0-uclibc.patch
blob: 774baf53e0fdc1949ca547ae6ca891adacb3fb59 (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
29
30
Index: Makefile
===================================================================
--- a/Makefile.orig	2008-01-29 19:22:47.000000000 +0200
+++ b/Makefile	2008-03-27 13:13:34.000000000 +0200
@@ -259,6 +259,10 @@
   ASTCFLAGS+=-pthread
 endif
 
+ifeq ($(OSARCH),linux-uclibc)
+  AST_LIBS+=-lpthread -ldl
+endif
+
 ifeq ($(OSARCH),SunOS)
   ASTCFLAGS+=-Wcast-align -DSOLARIS -I../include/solaris-compat -I/opt/ssl/include -I/usr/local/ssl/include -D_XPG4_2
 endif
Index: utils/Makefile
===================================================================
--- a/utils/Makefile.orig	2008-03-27 13:14:16.000000000 +0200
+++ b/utils/Makefile	2008-03-27 13:15:06.000000000 +0200
@@ -29,6 +29,10 @@
   UTILS:=$(filter-out muted,$(UTILS))
 endif
 
+ifeq ($(OSARCH),linux-uclibc)
+  LIBS+=-lpthread -lm -ldl
+endif
+
 ifeq ($(OSARCH),OpenBSD)
   UTILS:=$(filter-out muted,$(UTILS))
 endif