How to build cpp executable with static libsdtc++.a? -lstdc++ is hardcoded in bazel!!! #23324
apivovarov
started this conversation in
General
Replies: 2 comments
-
These flags are the default if |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great! Thank you! Setting
now protoc-2.params has the following 2 lines at the end
The only place where I found
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build
@com_google_protobuf//:protoc
(in xla project)The Linker command executed by bazel is
The last two lines in
protoc-2.params
areI found that these two libs are hardcoded in bazel code in tools/cpp/unix_cc_configure.bzl#L482
What should I do if I want to use static
libstdc++.a
lib for my executable?They only way I found so far is to change
tools/cpp/unix_cc_configure.bz
file and build custom bazel executable.Most probably I missed smth and it should be better option to link with static
libstdc++.a
.Beta Was this translation helpful? Give feedback.
All reactions