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

--no-as-needed, not -no-as-needed #6690

Closed
Profpatsch opened this issue Nov 15, 2018 · 2 comments
Closed

--no-as-needed, not -no-as-needed #6690

Profpatsch opened this issue Nov 15, 2018 · 2 comments
Labels
team-Rules-CPP Issues for C++ rules untriaged

Comments

@Profpatsch
Copy link
Contributor

From tools/cpp/unix_cc_configure:

…
) + _add_linker_option_if_supported(
    repository_ctx,
    cc,
    "-Wl,-no-as-needed",
    "-no-as-needed",
) + _add_linker_option_if_supported(
…

There is no -no-as-needed option to ld. That translates to --nmagic --output=-as-needed if I read the manpage correctly. Gotta love optparse.

@mhlopko, you might want to change this.

@benjaminp
Copy link
Collaborator

For GNU ld, the manpage states "For options whose names are multiple letters, either one dash or two can precede the option name"...

@irengrig irengrig added team-Rules-CPP Issues for C++ rules untriaged labels Nov 16, 2018
@Profpatsch
Copy link
Contributor Author

Ok, nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-CPP Issues for C++ rules untriaged
Projects
None yet
Development

No branches or pull requests

3 participants