mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 07:37:38 +01:00
Check for dl_phdr_removals_counter.
Check whether compiler supports -static-libcxa option (needed when building the shared objects with the Intel 8.x compiler). (LDFLAGS_STATIC_LIBCXA): Substitute its value. (Logical change 1.205)
This commit is contained in:
parent
a9217ee2df
commit
aa29b98f1d
1 changed files with 16 additions and 2 deletions
18
configure.in
18
configure.in
|
@ -48,7 +48,8 @@ AC_CHECK_TYPES([sighandler_t], [], [],
|
|||
dnl Checks for library functions.
|
||||
AC_FUNC_MEMCMP
|
||||
AC_TYPE_SIGNAL
|
||||
AC_CHECK_FUNCS(dl_iterate_phdr dlmodinfo getunwind ttrace)
|
||||
AC_CHECK_FUNCS(dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
|
||||
ttrace)
|
||||
|
||||
get_arch() {
|
||||
case "$1" in
|
||||
|
@ -80,7 +81,19 @@ AC_ARG_ENABLE(debug,
|
|||
|
||||
LIBUNWIND___THREAD
|
||||
|
||||
if test x$GCC = xyes; then
|
||||
save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -static-libcxa"
|
||||
AC_TRY_LINK([], [], [have_static_libcxa=yes])
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
if test "x$have_static_libcxa" = xyes; then
|
||||
LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
|
||||
fi
|
||||
|
||||
AC_TRY_COMPILE([], [#ifndef __INTEL_COMPILER
|
||||
#error choke me
|
||||
#endif], [intel_compiler=yes])
|
||||
|
||||
if test x$GCC = xyes -a x$intel_compiler != xyes; then
|
||||
CFLAGS="${CFLAGS} -Wall -Wsign-compare"
|
||||
fi
|
||||
|
||||
|
@ -91,6 +104,7 @@ ARCH=`echo $target_arch | tr [a-z] [A-Z]`
|
|||
|
||||
AC_SUBST(arch)
|
||||
AC_SUBST(ARCH)
|
||||
AC_SUBST(LDFLAGS_STATIC_LIBCXA)
|
||||
|
||||
AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile
|
||||
doc/Makefile doc/common.tex)
|
||||
|
|
Loading…
Reference in a new issue