]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
build: enable building with uClibc
authorJaco Kroon <jaco@uls.co.za>
Wed, 18 Mar 2020 09:49:39 +0000 (11:49 +0200)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 25 Mar 2020 12:09:39 +0000 (07:09 -0500)
This patch has been included in Gentoo distribution for at least since
asterisk 1.8, but there are references in the logs going back as far as
1.0.0 - not sure if this is still required in any way, it does apply,
and it doesn't (as far as we can determine) cause build failures.

Change-Id: I46d8845e30200205e80580680bf060aa3012ba54

Makefile

index 6a3e2515defdcf11c07691d4866ff55af52e859c..9b702bd19354f298055fb18d591dff2302c071ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -238,6 +238,10 @@ ifeq ($(OSARCH),OpenBSD)
   _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