From: Jaroslav Kysela Date: Tue, 23 Jan 2024 15:16:41 +0000 (+0100) Subject: topology: separate Versions linker script X-Git-Tag: v1.2.11~12 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=dc7da761f3a2b09f5249c26019e9572d5d0200e1;p=alsa-lib.git 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 --- diff --git a/src/topology/Makefile.am b/src/topology/Makefile.am index 9f48891f..f4dab76d 100644 --- a/src/topology/Makefile.am +++ b/src/topology/Makefile.am @@ -1,7 +1,7 @@ COMPATNUM=@LIBTOOL_VERSION_INFO@ if VERSIONED_SYMBOLS -VSYMS = -Wl,--version-script=../Versions +VSYMS = -Wl,--version-script=Versions else VSYMS = endif diff --git a/src/topology/Versions b/src/topology/Versions new file mode 100644 index 00000000..84c67f19 --- /dev/null +++ b/src/topology/Versions @@ -0,0 +1,7 @@ +ALSA_1.2.1 { + global: + snd_*; + + local: + *; +};