[Asterisk-code-review] build: enable building with uClibc (asterisk[master])

Jaco Kroon asteriskteam at digium.com
Wed Mar 18 04:51:38 CDT 2020


Jaco Kroon has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13950 )


Change subject: build: enable building with uClibc
......................................................................

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
---
M Makefile
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/50/13950/1

diff --git a/Makefile b/Makefile
index fdf0861..d2b17ff 100644
--- a/Makefile
+++ b/Makefile
@@ -234,6 +234,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

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13950
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I46d8845e30200205e80580680bf060aa3012ba54
Gerrit-Change-Number: 13950
Gerrit-PatchSet: 1
Gerrit-Owner: Jaco Kroon <jaco at uls.co.za>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200318/788c1821/attachment.html>


More information about the asterisk-code-review mailing list