Skip to contentSkip to conversation

Clang: fix versioned symbol build errors

DISCUSSION GitHub pull_request - opened 1 participant 1 message Jan 7, 2024 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-lib pull request #376 was opened from nvinson:

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 PR corrects that issue and additional issues found while making corrections so alsa-lib will successfully build using clang and ld.lld.

Request URL : https://github.com/alsa-project/alsa-lib/pull/376
Patch URL : https://github.com/alsa-project/alsa-lib/pull/376.patch
Repository URL: https://github.com/alsa-project/alsa-lib