<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8479">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/79/8479/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/Makefile b/Makefile<br>index 4e6072e..231faaf 100644<br>--- a/Makefile<br>+++ b/Makefile<br>@@ -282,7 +282,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 2456b0c..0532fba 100755<br>--- a/configure<br>+++ b/configure<br>@@ -4667,6 +4667,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>@@ -18554,6 +18559,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 571987c..c5e7f05 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>@@ -1298,6 +1303,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/8479">change 8479</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/8479"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </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: 8479 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>