summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-12-07 00:08:10 +0100
committerAndrei Karas <akaras@inbox.ru>2020-03-30 06:35:10 +0300
commit03b2194deabf1470c2b2e6e6b381ba2811c739e6 (patch)
treedf326284c2d623faea82d78b793699367a76fd05 /configure.ac
parent8f38bf7f9e402edc14df3fe89dc0b46b1b1c3ee9 (diff)
downloadhercules-03b2194deabf1470c2b2e6e6b381ba2811c739e6.tar.gz
hercules-03b2194deabf1470c2b2e6e6b381ba2811c739e6.tar.bz2
hercules-03b2194deabf1470c2b2e6e6b381ba2811c739e6.tar.xz
hercules-03b2194deabf1470c2b2e6e6b381ba2811c739e6.zip
Fix Makefile-based compilation on platforms that use libbacktrace with a different executable format than elf
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 746ecb589..e85e4463a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1503,25 +1503,25 @@ AC_COMPILE_IFELSE(
libbacktrace_cv_sys_filetype=$filetype])
# Match the file type to decide what files to compile.
-FORMAT_FILE=
+LIBBACKTRACE_FORMAT_FILE=
backtrace_supports_data=yes
case "$libbacktrace_cv_sys_filetype" in
-elf*) FORMAT_FILE="elf.lo" ;;
-pecoff) FORMAT_FILE="pecoff.lo"
+elf*) LIBBACKTRACE_FORMAT_FILE="elf.o" ;;
+pecoff) LIBBACKTRACE_FORMAT_FILE="pecoff.o"
backtrace_supports_data=no
;;
-xcoff*) FORMAT_FILE="xcoff.lo"
+xcoff*) LIBBACKTRACE_FORMAT_FILE="xcoff.o"
backtrace_supports_data=no
;;
-macho*) FORMAT_FILE="macho.lo"
+macho*) LIBBACKTRACE_FORMAT_FILE="macho.o"
backtrace_supports_data=no
;;
*) AC_MSG_WARN([could not determine output file type])
- FORMAT_FILE="unknown.lo"
+ LIBBACKTRACE_FORMAT_FILE="unknown.o"
backtrace_supported=no
;;
esac
-AC_SUBST(FORMAT_FILE)
+AC_SUBST(LIBBACKTRACE_FORMAT_FILE)
# ELF defines.
elfsize=