<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8477">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BuildSystem: Add NetBSD.<br><br>Headers, libraries, and rpath.<br><br>ASTERISK-27728<br>ASTERISK-11015<br>Reported by: Curt Sampson<br><br>Change-Id: I50aa5fcd095937df32a2e33307caac7e79a8b5b7<br>---<br>M Makefile<br>M configure<br>M configure.ac<br>3 files changed, 22 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/Makefile b/Makefile<br>index 4e6072e..2078e60 100644<br>--- a/Makefile<br>+++ b/Makefile<br>@@ -217,7 +217,9 @@<br> endif<br> endif<br> <br>-ifneq ($(findstring BSD,$(OSARCH)),)<br>+ifeq ($(OSARCH),NetBSD)<br>+ _ASTCFLAGS+=-isystem /usr/pkg/include<br>+else ifneq ($(findstring BSD,$(OSARCH)),)<br> _ASTCFLAGS+=-isystem /usr/local/include<br> endif<br> <br>@@ -282,7 +284,9 @@<br> # These are used for all but Darwin<br> SOLINK=-shared<br> DYLINK=$(SOLINK)<br>- ifneq ($(findstring BSD,$(OSARCH)),)<br>+ ifeq ($(OSARCH),NetBSD)<br>+ _ASTLDFLAGS+=-L/usr/pkg/lib<br>+ else ifneq ($(findstring BSD,$(OSARCH)),)<br> _ASTLDFLAGS+=-L/usr/local/lib<br> endif<br> endif<br>diff --git a/configure b/configure<br>index 18609ca..3dad9d0 100755<br>--- a/configure<br>+++ b/configure<br>@@ -4671,6 +4671,11 @@<br> esac<br> <br> case "${host_os}" in<br>+ netbsd*)<br>+ ac_default_prefix=/usr/pkg<br>+ CPPFLAGS=-I/usr/pkg/include<br>+ LDFLAGS=-L/usr/pkg/lib<br>+ ;;<br> freebsd*)<br> ac_default_prefix=/usr/local<br> CPPFLAGS=-I/usr/local/include<br>@@ -18623,6 +18628,9 @@<br> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5<br> $as_echo_n "checking whether to use rpath... " >&6; }<br> AST_RPATH=<br>+if test "${OSARCH}" = "NetBSD"; then<br>+ AST_RPATH="-Wl,-rpath,/usr/pkg/lib"<br>+fi<br> if test "${check_rpath}" != yes; then<br> { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5<br> $as_echo "skipped" >&6; }<br>diff --git a/configure.ac b/configure.ac<br>index a59646c..111bcdf 100644<br>--- a/configure.ac<br>+++ b/configure.ac<br>@@ -62,6 +62,11 @@<br> esac<br> <br> case "${host_os}" in<br>+ netbsd*)<br>+ ac_default_prefix=/usr/pkg<br>+ CPPFLAGS=-I/usr/pkg/include<br>+ LDFLAGS=-L/usr/pkg/lib<br>+ ;;<br> freebsd*)<br> ac_default_prefix=/usr/local<br> CPPFLAGS=-I/usr/local/include<br>@@ -1313,6 +1318,9 @@<br> <br> AC_MSG_CHECKING(whether to use rpath)<br> AST_RPATH=<br>+if test "${OSARCH}" = "NetBSD"; then<br>+ AST_RPATH="-Wl,-rpath,/usr/pkg/lib"<br>+fi<br> if test "${check_rpath}" != yes; then<br> AC_MSG_RESULT(skipped)<br> elif test "${prefix}" = /usr || test "${prefix}" = NONE; then<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8477">change 8477</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8477"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I50aa5fcd095937df32a2e33307caac7e79a8b5b7 </div>
<div style="display:none"> Gerrit-Change-Number: 8477 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>