From: Nicholas Vinson <nvinson234@gmail.com>
To: alsa-devel@alsa-project.org
Cc: Nicholas Vinson <nvinson234@gmail.com>
Subject: [PATCH 0/4] Clang: fix versioned symbol build errors
Date: Sun, 7 Jan 2024 08:48:52 -0500 [thread overview]
Message-ID: <cover.1704635150.git.nvinson234@gmail.com> (raw)
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).
Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
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%)
--
2.43.0
next reply other threads:[~2024-01-08 16:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-07 13:48 Nicholas Vinson [this message]
2024-01-07 13:48 ` [PATCH 1/4] configure.ac: Update AC_OUTPUT() function Nicholas Vinson
2024-01-07 13:48 ` [PATCH 2/4] src/Versions.in: Add guards for opt. alisp symbols Nicholas Vinson
2024-01-07 13:48 ` [PATCH 3/4] src/Versions.in: Add guards for pcm and timer syms Nicholas Vinson
2024-01-07 13:48 ` [PATCH 4/4] libatopology: Remove version-script flags Nicholas Vinson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1704635150.git.nvinson234@gmail.com \
--to=nvinson234@gmail.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox