Skip to content
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

static: remove -Wl,--no-undefined from ldflags. Go 1.17 will have sup… #481

Merged
merged 1 commit into from
May 8, 2021

Conversation

Keithcat1
Copy link
Contributor

…port for linking with LLVM lld, but LLD its self doesn't accept --no-undefined

…port for linking with LLVM lld, but LLD its self doesn't accept --no-undefined
@veeableful
Copy link
Contributor

Hi @Keithcat1, thanks for submitting the pull request! Could you explain why we need to remove the flag? Is Go going to use LLD as the default linker? If so, could you please share the links?

Otherwise, perhaps this can be implemented via a build tag?

@Keithcat1
Copy link
Contributor Author

LLD won't become the default linker for GO as far as I know, however I like to use it because it speeds up compilation times.
--no-undefined needs to be removed because LLD crashes if it gets this flag.
See #464

@veeableful
Copy link
Contributor

Ahh I see. If @gen2brain said it's okay, then I will merge this pull request. Thanks for bringing the old issue back into attention! I will also back-port this back to v0.4.x.

@veeableful veeableful merged commit 98538b5 into veandco:master May 8, 2021
veeableful pushed a commit that referenced this pull request May 8, 2021
…port for linking with LLVM lld, but LLD its self doesn't accept --no-undefined (#481)
neputevshina pushed a commit to neputevshina/go-sdl2 that referenced this pull request Nov 13, 2024
…port for linking with LLVM lld, but LLD its self doesn't accept --no-undefined (veandco#481)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants