Skip to content

Commit

Permalink
topology: separate Versions linker script
Browse files Browse the repository at this point in the history
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: #376
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
perexg committed Jan 23, 2024
1 parent 55c6338 commit dc7da76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/topology/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
COMPATNUM=@LIBTOOL_VERSION_INFO@

if VERSIONED_SYMBOLS
VSYMS = -Wl,--version-script=../Versions
VSYMS = -Wl,--version-script=Versions
else
VSYMS =
endif
Expand Down
7 changes: 7 additions & 0 deletions src/topology/Versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALSA_1.2.1 {
global:
snd_*;

local:
*;
};

0 comments on commit dc7da76

Please sign in to comment.