<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8478">View Change</a></p><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, 19 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/78/8478/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/Makefile b/Makefile<br>index c0138db..87a2603 100644<br>--- a/Makefile<br>+++ b/Makefile<br>@@ -283,7 +283,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 3442d57..91c6452 100755<br>--- a/configure<br>+++ b/configure<br>@@ -4631,6 +4631,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>@@ -18297,6 +18302,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 d9148c0..bd20728 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>@@ -1266,6 +1271,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/8478">change 8478</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/8478"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I50aa5fcd095937df32a2e33307caac7e79a8b5b7 </div>
<div style="display:none"> Gerrit-Change-Number: 8478 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>