1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Fix build error due to under-linking of libvorbis and libogg, which causes a build error if they have been built usining -Wl,--as-needed to avoid re-exporting library symbols

This commit is contained in:
richardash1981
2014-08-12 21:31:25 +00:00
parent 0b1819afd2
commit 5a01406d49
2 changed files with 14 additions and 9 deletions

View File

@@ -13,9 +13,14 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBVORBIS], [
dnl See if Vorbis is installed in the system
PKG_CHECK_MODULES(LIBVORBIS, vorbisenc vorbisfile,
PKG_CHECK_MODULES(LIBVORBIS, vorbisenc vorbisfile vorbis ogg,
LIBVORBIS_SYSTEM_AVAILABLE="yes",
LIBVORBIS_SYSTEM_AVAILABLE="no")
dnl Have to list the dependent libraries (vorbis and ogg) here because their
dnl symbols are used from Audacity directly, and (in a minimally linked system,
dnl e.g. with LDFLAGS including -Wl,--as-needed and with libtool patched to not
dnl break this) pulling in libraries that use libvorbis does not automagically
dnl cause the libvorbis symbols to be linkable.
if test "$LIBVORBIS_SYSTEM_AVAILABLE" = "yes"; then
AC_MSG_NOTICE([Vorbis libraries are available as system libraries])