From: Jaco Kroon Date: Wed, 18 Mar 2020 09:49:39 +0000 (+0200) Subject: build: enable building with uClibc X-Git-Tag: 17.4.0-rc1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6706af0d5be43dc4d382e082d9ef6b695512f64d;p=thirdparty%2Fasterisk.git build: enable building with uClibc 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 --- diff --git a/Makefile b/Makefile index fdf0861ebd..d2b17fff48 100644 --- a/Makefile +++ b/Makefile @@ -234,6 +234,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