[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8a96343 3/6: Link with libunwind and libdw if
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8a96343 3/6: Link with libunwind and libdw if necessary in autotools build |
Date: |
Fri, 5 Mar 2021 08:58:48 -0500 (EST) |
branch: master
commit 8a9634312382e6e06fa7fc17cf9ad55763f952f2
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Link with libunwind and libdw if necessary in autotools build
Propagate the changes of 12273527f (Add C++ exception unwinder for
pc-linux-gnu, 2021-02-07) to posix_fhs.make to configure.ac, i.e. link
with the required extra libraries in the configurations that require
them.
---
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac
index b66461d..f09d782 100644
--- a/configure.ac
+++ b/configure.ac
@@ -447,6 +447,13 @@ AC_TRY_COMPILE([#include <xmlwrapp/xmlwrapp.h>],
CXXFLAGS=$save_CXXFLAGS
LIBS=$save_LIBS
+dnl --- libunwind and libdw, only used under Linux and only with gcc/libstdc++
+if test "$USE_LINUX" = "1" -a "$CLANG" != "yes"; then
+ PKG_CHECK_MODULES(UNWIND, libunwind libdw)
+ CXXFLAGS="$CXXFLAGS $UNWIND_CFLAGS"
+ LIBS="$LIBS $UNWIND_LIBS -ldl"
+fi
+
dnl --- CGICC (optional) ----------------
if test "x$lmi_cgicc_option" != "xno"; then
lmi_found_cgicc=yes
- [lmi-commits] [lmi] master updated (d8a8b60 -> 3a77860), Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 341c462 2/6: Install now required libunwind and libdw for the CI builds, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 8a96343 3/6: Link with libunwind and libdw if necessary in autotools build,
Greg Chicares <=
- [lmi-commits] [lmi] master 6c161a0 5/6: Remove redundant test for __GNUC__, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 38a2a97 1/6: Permit a particular reserved name, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 3a77860 6/6: Remove pragma GCC diagnostic push without matching pop, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 2cd4fe1 4/6: Only compile unwind.cpp when using libstdc++, Greg Chicares, 2021/03/05