topology: separate Versions linker script

A slightly different solution is preferred than PR recommends (bellow).
Only symbols with snd_ prefix should be public. Create a minimal Versions
file for libatopology.

Link: https://github.com/alsa-project/alsa-lib/pull/376
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2024-01-23 16:16:41 +01:00
parent 55c6338290
commit dc7da761f3
2 changed files with 8 additions and 1 deletions

View file

@ -1,7 +1,7 @@
COMPATNUM=@LIBTOOL_VERSION_INFO@
if VERSIONED_SYMBOLS
VSYMS = -Wl,--version-script=../Versions
VSYMS = -Wl,--version-script=Versions
else
VSYMS =
endif

7
src/topology/Versions Normal file
View file

@ -0,0 +1,7 @@
ALSA_1.2.1 {
global:
snd_*;
local:
*;
};