mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Merge "BuildSystem: Add NetBSD." into 13
This commit is contained in:
8
Makefile
8
Makefile
@@ -218,7 +218,9 @@ ifeq ($(AST_DEVMODE),yes)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(findstring BSD,$(OSARCH)),)
|
||||
ifeq ($(OSARCH),NetBSD)
|
||||
_ASTCFLAGS+=-isystem /usr/pkg/include
|
||||
else ifneq ($(findstring BSD,$(OSARCH)),)
|
||||
_ASTCFLAGS+=-isystem /usr/local/include
|
||||
endif
|
||||
|
||||
@@ -285,7 +287,9 @@ else
|
||||
# These are used for all but Darwin
|
||||
SOLINK=-shared
|
||||
DYLINK=$(SOLINK)
|
||||
ifneq ($(findstring BSD,$(OSARCH)),)
|
||||
ifeq ($(OSARCH),NetBSD)
|
||||
_ASTLDFLAGS+=-L/usr/pkg/lib
|
||||
else ifneq ($(findstring BSD,$(OSARCH)),)
|
||||
_ASTLDFLAGS+=-L/usr/local/lib
|
||||
endif
|
||||
endif
|
||||
|
8
configure
vendored
8
configure
vendored
@@ -4639,6 +4639,11 @@ case "${host_os}" in
|
||||
esac
|
||||
|
||||
case "${host_os}" in
|
||||
netbsd*)
|
||||
ac_default_prefix=/usr/pkg
|
||||
CPPFLAGS=-I/usr/pkg/include
|
||||
LDFLAGS=-L/usr/pkg/lib
|
||||
;;
|
||||
freebsd*)
|
||||
ac_default_prefix=/usr/local
|
||||
CPPFLAGS=-I/usr/local/include
|
||||
@@ -18308,6 +18313,9 @@ fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
|
||||
$as_echo_n "checking whether to use rpath... " >&6; }
|
||||
AST_RPATH=
|
||||
if test "${OSARCH}" = "NetBSD"; then
|
||||
AST_RPATH="-Wl,-rpath,/usr/pkg/lib"
|
||||
fi
|
||||
if test "${check_rpath}" != yes; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
|
||||
$as_echo "skipped" >&6; }
|
||||
|
@@ -62,6 +62,11 @@ case "${host_os}" in
|
||||
esac
|
||||
|
||||
case "${host_os}" in
|
||||
netbsd*)
|
||||
ac_default_prefix=/usr/pkg
|
||||
CPPFLAGS=-I/usr/pkg/include
|
||||
LDFLAGS=-L/usr/pkg/lib
|
||||
;;
|
||||
freebsd*)
|
||||
ac_default_prefix=/usr/local
|
||||
CPPFLAGS=-I/usr/local/include
|
||||
@@ -1269,6 +1274,9 @@ AC_ARG_ENABLE(rpath,
|
||||
|
||||
AC_MSG_CHECKING(whether to use rpath)
|
||||
AST_RPATH=
|
||||
if test "${OSARCH}" = "NetBSD"; then
|
||||
AST_RPATH="-Wl,-rpath,/usr/pkg/lib"
|
||||
fi
|
||||
if test "${check_rpath}" != yes; then
|
||||
AC_MSG_RESULT(skipped)
|
||||
elif test "${prefix}" = /usr || test "${prefix}" = NONE; then
|
||||
|
Reference in New Issue
Block a user