[vlc-commits] [Git][videolan/vlc][master] configure: look for backtrace() in libexecinfo (fixes #26562)

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Wed Feb 2 09:42:13 UTC 2022



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
b3179e1e by Rémi Denis-Courmont at 2022-02-02T09:16:57+00:00
configure: look for backtrace() in libexecinfo (fixes #26562)

- - - - -


2 changed files:

- configure.ac
- src/Makefile.am


Changes:

=====================================
configure.ac
=====================================
@@ -1363,7 +1363,12 @@ esac
 
 dnl Check for backtrace() support
 AC_CHECK_HEADERS([execinfo.h])
-AC_CHECK_FUNCS([backtrace])
+AC_CHECK_FUNCS([backtrace],, [
+  AC_CHECK_LIB([execinfo], [backtrace], [
+    LIBEXECINFO="-lexecinfo"])
+])
+AC_SUBST(LIBEXECINFO)
+
 
 dnl
 dnl  default modules


=====================================
src/Makefile.am
=====================================
@@ -507,6 +507,7 @@ libvlccore_la_SOURCES += posix/sort.c
 endif
 libvlccore_la_SOURCES += \
 	posix/thread.c
+libvlccore_la_LIBADD += $(LIBEXECINFO)
 if !HAVE_DARWIN
 libvlccore_la_SOURCES += \
 	posix/dirs.c \



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b3179e1e0993b8c15b735c93282c7675632c183c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b3179e1e0993b8c15b735c93282c7675632c183c
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list