summaryrefslogtreecommitdiffstats
path: root/testing/asterisk/asterisk-02-1.6.0-uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/asterisk/asterisk-02-1.6.0-uclibc.patch')
-rw-r--r--testing/asterisk/asterisk-02-1.6.0-uclibc.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/asterisk/asterisk-02-1.6.0-uclibc.patch b/testing/asterisk/asterisk-02-1.6.0-uclibc.patch
new file mode 100644
index 000000000..774baf53e
--- /dev/null
+++ b/testing/asterisk/asterisk-02-1.6.0-uclibc.patch
@@ -0,0 +1,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