mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Merge "CI: New way to determnine libdir" into 13
This commit is contained in:
@@ -89,7 +89,7 @@ runner ulimit -a
|
|||||||
|
|
||||||
MAKE=`which make`
|
MAKE=`which make`
|
||||||
PKGCONFIG=`which pkg-config`
|
PKGCONFIG=`which pkg-config`
|
||||||
[ -d /usr/lib64 ] && _libdir=/usr/lib64
|
_libdir=`${CIDIR}/findLibdir.sh`
|
||||||
|
|
||||||
common_config_args="--prefix=/usr ${_libdir:+--libdir=${_libdir}} --sysconfdir=/etc --with-pjproject-bundled"
|
common_config_args="--prefix=/usr ${_libdir:+--libdir=${_libdir}} --sysconfdir=/etc --with-pjproject-bundled"
|
||||||
$PKGCONFIG 'jansson' || common_config_args+=" --with-jansson-bundled"
|
$PKGCONFIG 'jansson' || common_config_args+=" --with-jansson-bundled"
|
||||||
|
|||||||
14
tests/CI/findLibdir.sh
Executable file
14
tests/CI/findLibdir.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source /etc/os-release
|
||||||
|
|
||||||
|
case $ID in
|
||||||
|
centos)
|
||||||
|
echo /usr/lib64
|
||||||
|
;;
|
||||||
|
fedora)
|
||||||
|
echo /usr/lib64
|
||||||
|
;;
|
||||||
|
ubuntu)
|
||||||
|
echo /usr/lib
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user