Skip to content

Clang: fix versioned symbol build errors

Nicholas Vinson alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4configure.ac: Update AC_OUTPUT() functionconfigure.ac+18 -160 replies
2/4src/Versions.in: Add guards for opt. alisp symbolsconfigure.ac src/Makefile.am src/Versions.in.in+15 -20 replies
3/4src/Versions.in: Add guards for pcm and timer symssrc/Makefile.am src/Versions.in.in+16 -00 replies
4/4libatopology: Remove version-script flagssrc/topology/Makefile.am+1 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Clang: fix versioned symbol build errors

When building alsa-lib with the following settings

    CFLAGS='-O3 -pipe'
    CXXFLAGS='-O3 -pipe'
    LDFLAGS=-Wl,-O1		\
	-Wl,--as-needed		\
	-fuse-ld=lld		\
	-rtlib=compiler-rt	\
	-unwindlib=libunwind

the build fails with errors similar to

ld.lld: error: version script assignment of 'ALSA_0.9.5' to symbol
'alsa_lisp' failed: symbol not defined

This patch corrects that issue and additional issues found while making corrections so alsa-lib will successfully build using clang and ld.lld.

This patch set was also submitted as a github PR
(https://github.com/alsa-project/alsa-lib/pull/376).

Nicholas Vinson (4):
configure.ac: Update AC_OUTPUT() function src/Versions.in: Add guards for opt. alisp symbols src/Versions.in: Add guards for pcm and timer syms
libatopology: Remove version-script flags

 configure.ac                        | 34 +++++++++++++++--------------
 src/Makefile.am                     | 14 +++++++++++-
 src/{Versions.in => Versions.in.in} | 17 +++++++++++++++
 src/topology/Makefile.am            |  8 +------
 4 files changed, 49 insertions(+), 24 deletions(-)
 rename src/{Versions.in => Versions.in.in} (95%)
Signature · 1 line
2.43.0