mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
detect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabi
* Set OSARCH to linux-gnu even if host_os is linux-gnueabi
* When checking if we are Linux, check OSARCH rather than host_os
The newer ARM ABI ("EABI") shows the OS name 'linux-gnueabi' rather than
'linux-gnu' . This patch sets OSARCH to be 'linux-gnu' even in such a case.
OSARCH is tested for the value of 'linux-gnu' in one or two places in the
tree. This patch also fixes the check libcap to check for $OSARCH rather
than $host_os .
See also: http://wiki.debian.org/ArmEabiPort
Merged revisions 225957 via svnmerge from
http://svn.digium.com/svn/asterisk/branches/1.4
Merged revisions 226018 via svnmerge from
http://svn.digium.com/svn/asterisk/trunk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@226019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -109,6 +109,9 @@ case "${host_os}" in
|
|||||||
OSARCH=cygwin
|
OSARCH=cygwin
|
||||||
WINARCH=1
|
WINARCH=1
|
||||||
;;
|
;;
|
||||||
|
linux-gnueabi)
|
||||||
|
OSARCH=linux-gnu
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
OSARCH=${host_os}
|
OSARCH=${host_os}
|
||||||
;;
|
;;
|
||||||
@@ -624,7 +627,7 @@ AST_EXT_LIB_CHECK([ALSA], [asound], [snd_spcm_init], [alsa/asoundlib.h], [-lm -l
|
|||||||
|
|
||||||
AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
|
AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
|
||||||
|
|
||||||
if test "x${host_os}" = "xlinux-gnu" ; then
|
if test "x${OSARCH}" = "xlinux-gnu" ; then
|
||||||
AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
|
AST_EXT_LIB_CHECK([CAP], [cap], [cap_from_text], [sys/capability.h])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user