Make it possible to build Ruby gem with system OpenSSL

  1. Make it possible to build Ruby gem with system OpenSSL

By installing the gem with EMBED_OPENSSL=false, the Ruby gem can be compiled using the system OpenSSL library. This is needed on systems where BoringSSL doesn't compile (e.g. s390x).

  1. Allow configuration of number of jobs to build Ruby gem

Some systems may be memory-constrained, so launching N jobs for N processors will cause the compilation to run out of memory. We add an environment variable, MAKE_NPROC, that allows users to use a custom number of jobs.

For example, I was able to build on s390x via:

MAKE_NPROC=1 EMBED_OPENSSL=false gem install pkg/grpc-1.30.2.gem

This was extracted from https://github.com/grpc/grpc/pull/27881 for gRPC v1.30.2, the current version we use for GitLab.

Edited by Stan Hu

Merge request reports

Loading