]> git.ipfire.org Git - thirdparty/asterisk.git/commit
build: fix bininstall launchd issue on cross-platform build
authorSergey V. Lobanov <sergey@lobanov.in>
Fri, 18 Feb 2022 21:59:02 +0000 (00:59 +0300)
committerJoshua Colp <jcolp@sangoma.com>
Tue, 26 Jul 2022 14:46:24 +0000 (09:46 -0500)
commit30022e05cbb43be0aad8583a87c65548876de0ce
tree986585d5520ee4d689efcb0040bc5dae72656a06
parent7a54badf314ea6e2946b374c21e907a5f106eeb0
build: fix bininstall launchd issue on cross-platform build

configure script detects /sbin/launchd, but the result of this
check is not used in Makefile (bininstall). Makefile also detects
/sbin/launchd file to decide if it is required to install
safe_asterisk.

configure script correctly detects cross compile build and sets
PBX_LAUNCHD=0

In case of building asterisk on MacOS host for Linux target using
external toolchain (e.g. OpenWrt toolchain), bininstall does not
install safe_asterisk (due to /sbin/launchd detection in Makefile),
but it is required on target (Linux).

This patch adds HAVE_SBIN_LAUNCHD=@PBX_LAUNCHD@ to makeopts.in to
use the result of /sbin/launchd detection from configure script in
Makefile.
Also this patch uses HAVE_SBIN_LAUNCHD in Makefile (bininstall) to
decide if it is required to install safe_asterisk.

ASTERISK-29905 #close

Change-Id: Iff61217276cd188f43f51ef4cdbffe39d9f07f65
Makefile
makeopts.in