lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]