You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, I want to remove -lstdc++/-lc++ from generated toolchain for specific target to link libstdc++ statically while keep other cc targets linked dynamically, there's no -static-libc++ but -static-libstdc++. Passing both -lc++ and -l:libc++.a results a dynamic link.
The text was updated successfully, but these errors were encountered:
There's no plan to add nolinkopts to Bazel, in fact, the next release will not have nocopts as well: #8706.
Bazel has a BAZEL_LINKOPTS variable, which defaults to -lstdc++:-lm, and which you can change to remove -lstdc++. Then, you'll need to add -lstdc++ to linkopts of the targets where you want libstdc++ linked dynamically, and -l:libc++.a for the other ones.
Description of the problem / feature request:
Specifically, I want to remove
-lstdc++
/-lc++
from generated toolchain for specific target to link libstdc++ statically while keep other cc targets linked dynamically, there's no-static-libc++
but-static-libstdc++
. Passing both-lc++
and-l:libc++.a
results a dynamic link.The text was updated successfully, but these errors were encountered: