diff options
| author | Yann E. MORIN <yann.morin.1998@free.fr> | 2017-09-09 23:39:08 +0200 |
|---|---|---|
| committer | Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> | 2017-09-23 19:20:18 +0200 |
| commit | 19b1c16e8c89d850b85734aa292cb9ad9bfd8816 (patch) | |
| tree | df92497a1750d01922a670fb8a8dfe89c153db81 | |
| parent | 05e306d8d333b56c30bc322983527d2bae771361 (diff) | |
| download | buildroot-19b1c16e8c89d850b85734aa292cb9ad9bfd8816.tar.gz buildroot-19b1c16e8c89d850b85734aa292cb9ad9bfd8816.zip | |
package/asterisk: enable backtrace when available
asterisk uses backtrace() from execinfo.h to print beuatiful backtraces
when it fails. But execinfo is only reliably available with glibc, while
it is optionbal in uClibc and completely missing in musl.
So, only enable backtrace support for glibc toolchains.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
| -rw-r--r-- | package/asterisk/asterisk.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package/asterisk/asterisk.mk b/package/asterisk/asterisk.mk index 7016c9f3a4..65f80626be 100644 --- a/package/asterisk/asterisk.mk +++ b/package/asterisk/asterisk.mk @@ -50,7 +50,6 @@ ASTERISK_CONF_OPTS = \ --disable-rpath \ --without-asound \ --without-bfd \ - --without-execinfo \ --without-bluetooth \ --without-cap \ --without-cpg \ @@ -135,6 +134,12 @@ ASTERISK_CONF_OPTS += --without-avcodec ASTERISK_CONF_ENV = \ ac_cv_path_CONFIG_LIBXML2=$(STAGING_DIR)/usr/bin/xml2-config +ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y) +ASTERISK_CONF_OPTS += --with-execinfo +else +ASTERISK_CONF_OPTS += --without-execinfo +endif + ASTERISK_DIRS = \ ASTVARLIBDIR="/usr/lib/asterisk" \ ASTDATADIR="/usr/lib/asterisk" \ |

