blob: 167ae080b19365dff7e7ae3fe4136d89f1a97423 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Gentoo bug 66557
Link: http://bugs.gentoo.org/show_bug.cgi?id=66557
Patch-By: REdOG
Submitted upstream: No
The uclibc environment, as opposed to the glibc environment, needs explicit
linking with the pthread & dl libraries. Without these, name resolution is
not functional.
--- asterisk-1.8.7.0-rc2.orig/Makefile 2011-08-25 21:00:55.000000000 +0200
+++ asterisk-1.8.7.0-rc2.orig/Makefile 2011-09-21 14:13:12.823076046 +0200
@@ -247,6 +247,10 @@
_ASTCFLAGS+=-pthread -ftrampolines
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 -D__EXTENSIONS__
endif
|