-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build with LLD #332
Fix build with LLD #332
Conversation
Upstream-PR: calf-studio-gear/calf#332 Closes: https://bugs.gentoo.org/740158 Signed-off-by: Violet Purcell <vimproved@inventati.org>
Upstream-PR: calf-studio-gear/calf#332 Closes: https://bugs.gentoo.org/740158 Signed-off-by: Violet Purcell <vimproved@inventati.org>
Upstream-PR: calf-studio-gear/calf#332 Closes: https://bugs.gentoo.org/740158 Signed-off-by: Violet Purcell <vimproved@inventati.org> Signed-off-by: Sam James <sam@gentoo.org>
LLVM's LLD handles the -retain-symbols-file option (used by -export-symbols-regex in libtool) differently from GNU ld, causing undefined references during link. This commit removes the -export-symbols-regex option from libcalf_la_LDFLAGS since by default libtool exports all symbols anyway, so it should not be necessary. Fixes calf-studio-gear#156. Signed-off-by: Violet Purcell <vimproved@inventati.org>
Thanks. I will probably set up a new CI for the project, and as soon as it works with your PR, I will merge it. |
Hi again @vimproved . I am starting to maintain CALF, and before I merge PRs, I would like to set up a CI. I have it working for GCC already (branch |
If your distro doesn't ship clang compiled to use LLD by default, then you'll need to also set |
(also, if you're looking at merging some PRs could you potentially make a new release? it would be helpful for gentoo's packaging to not have lingering backports.) |
Thanks, that indeed made it fail and if I used the CI like this, your PR indeed fixed the issue. I will make some more CI tests and then soon merge your PR.
I can look after it. FWIR, ebuilds are inside the gentoo repo, so there are no artifacts we need to produce for gentoo? If you have any experience with artifacts for distros, it would be cool if you could name them in #335 . |
@vimproved I found another occurrence of |
Sure. |
@vimproved I just pushed #343 to remove that flag. Please feel free to review. |
LLVM's LLD handles the -retain-symbols-file option (used by -export-symbols-regex in libtool) differently from GNU ld, causing undefined references during link. This commit removes the -export-symbols-regex option from libcalf_la_LDFLAGS since by default libtool exports all symbols anyway, so it should not be necessary.
Fixes #156.