]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: separate Versions linker script
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Jan 2024 15:16:41 +0000 (16:16 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Jan 2024 15:22:05 +0000 (16:22 +0100)
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>
src/topology/Makefile.am
src/topology/Versions [new file with mode: 0644]

index 9f48891f5c28cfbb145679d40e93e6f36e4647db..f4dab76ddadbd7520819bcc4089f2d66c226b465 100644 (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
diff --git a/src/topology/Versions b/src/topology/Versions
new file mode 100644 (file)
index 0000000..84c67f1
--- /dev/null
@@ -0,0 +1,7 @@
+ALSA_1.2.1 {
+  global:
+    snd_*;
+
+  local:
+    *;
+};