[vlc-commits] [Git][videolan/vlc][3.0.x] configure: look for backtrace() in libexecinfo (fixes #26562)
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Feb 20 13:23:09 UTC 2025
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
a031af85 by Rémi Denis-Courmont at 2025-02-20T12:57:46+00:00
configure: look for backtrace() in libexecinfo (fixes #26562)
Fixes linking on *BSD's.
(cherry picked from commit b3179e1e0993b8c15b735c93282c7675632c183c)
- - - - -
2 changed files:
- configure.ac
- src/Makefile.am
Changes:
=====================================
configure.ac
=====================================
@@ -1317,8 +1317,13 @@ case "${host_cpu}" in
esac
dnl Check for backtrace() support
-AC_CHECK_HEADERS(execinfo.h)
-AC_CHECK_FUNCS(backtrace)
+AC_CHECK_HEADERS([execinfo.h])
+AC_CHECK_FUNCS([backtrace],, [
+ AC_CHECK_LIB([execinfo], [backtrace], [
+ LIBEXECINFO="-lexecinfo"])
+])
+AC_SUBST(LIBEXECINFO)
+
dnl
dnl default modules
=====================================
src/Makefile.am
=====================================
@@ -419,6 +419,7 @@ libvlccore_la_SOURCES += \
darwin/specific.c \
darwin/thread.c
else
+libvlccore_la_LIBADD += $(LIBEXECINFO)
libvlccore_la_SOURCES += \
posix/dirs.c \
posix/error.c \
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a031af8522d7cc1ad03eb7985e4ca60fd031eabc
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a031af8522d7cc1ad03eb7985e4ca60fd031eabc
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list