kumquat-buildroot/package/alsa-lib
Joseph Kogut 21a1a59270 package/alsa-lib: disable versioned symbols only when unsupported
Back in commit e90a4bf4af ("alsa-lib:
don't use versioned symbols") from 2009, symbol versioning was
disabled in alsa-lib, because it was causing problems with C
libraries (such as uClibc) that doesn't support symbol versioning. The
thread at
http://mailman.alsa-project.org/pipermail/alsa-devel/2009-February/014999.html
has some background discussion about this.

Essentially, the issue was that alsa-lib in the new version of a given
symbol calls into an old version of the same symbol. If your C library
has symbol versioning, everything works fine. But if your C library
doesn't support symbol versioning, the call from the new symbol into
the old symbol will in fact end up in the new symbol, causing an
infinite recursion.

That problem was solved back then by unconditionally disabling symbol
versioning in alsa-lib.

However, some libraries such as CEF depend on versioned symbols from
alsa-lib, and the build fails during linking with versioning disabled.

This patch conditionally disables versioned symbols when unsupported
by the toolchain, leaving them enabled otherwise. We assume only glibc
has support for symbol versioning. uClibc has no support, and musl has
some limited support, so we take the safe route of only enabling
symbol versioning for glibc.

Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-01-08 10:58:58 +01:00
..
0001-Don-t-use-fork-on-noMMU-platforms.patch
0002-fix-PyTuple_SET_ITEM-usage-no-return-value.patch package/alsa-lib: bump to version 1.2.6 2021-12-30 13:21:36 +01:00
0003-src-topology-parser.c-drop-duplicate-safe_strtol_bas.patch package/alsa-lib: fix static build 2022-01-01 22:37:47 +01:00
0004-conf-fix-the-export-of-safe_strto-functions-from-libasound.patch package/alsa-lib: fix static build 2022-01-01 22:37:47 +01:00
alsa-lib.hash package/alsa-lib: bump to version 1.2.6 2021-12-30 13:21:36 +01:00
alsa-lib.mk package/alsa-lib: disable versioned symbols only when unsupported 2022-01-08 10:58:58 +01:00
Config.in package/alsa-lib: smixer-python module supports python3 2021-09-21 21:01:29 +02:00