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

Patch to remove hard coded -lcrypto from proxy-wasm-cpp-host on s390x #234

Conversation

tedjpoole
Copy link
Contributor

The proxy-wasm-cpp-host bazel/BUILD file adds the -lcrypto option to the link line if either --define=crypto=system is specified to bazel, or if building on s390x. This effectively means that on s390x, the -lcrypto linker option is always added and there's no way to remove it.

This updated patch removes that special s390x case, so that -lcrypto is not added to the link line unless --define=crypto=system is specified, the same as for all other architectures. In the context of envoy-openssl, this means that proxy-wasm-cpp-host, along with everything else, gets linked against libbssl-compat.a rather than libcrypto.so, which is what we need.

The proxy-wasm-cpp-host BUILD file adds the -lcrypto option to the link line if
either --define=crypto=system is specified to bazel, or if building on s390x.
This effectively means that on s390x, the -lcrypto linker option is *always*
added and there's no way to remove it.

This updated patch removes that special s390x case, so that -lcrypto is *not*
added to the link line unless --define=crypto=system is specified, the same
as for all other architectures. In the context of envoy-openssl, this means
that proxy-wasm-cpp-host, along with everything else, gets linked against
libbssl-compat.a rather than libcrypto.so, which is what we need.

Signed-off-by: Ted Poole <tpoole@redhat.com>
@tedjpoole tedjpoole merged commit e38bb3e into envoyproxy:release/v1.28 Jul 5, 2024
5 checks passed
@tedjpoole tedjpoole deleted the proxy-wasm-cpp-host-remove-s390x-lcrypto branch July 5, 2024 13:39
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