From dc7da761f3a2b09f5249c26019e9572d5d0200e1 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 23 Jan 2024 16:16:41 +0100 Subject: [PATCH] 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 --- src/topology/Makefile.am | 2 +- src/topology/Versions | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/topology/Versions 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: + *; +}; -- 2.47.1