mirror of https://github.com/grpc/grpc.git
[ruby] fix re2 compilation when older system version installed (#32580)
re2 previously failed to compile if: 1. An old `re2` version is installed with a non-standard system prefix, such as `/opt/local`. 2. The environment variable is set: `CPPFLAGS=-I/opt/local/include`. Running `make` would result in function prototype mismatches because the Makefile would previously attempt to use the headers from `/opt/local/include/re2` before the `third_party/re2/re2` directory. https://github.com/grpc/grpc/pull/27660 caused `CPPFLAGS` to inherit from the environment, but this can cause the Makefile to use external include files for re2 and other libraries if `-I` flags are defined. This commit reverts to the original behavior of only using `RbConfig::CONFIG` values to avoid using the wrong headers.revert-32956-client-channel-resolver-fuzzer
parent
dcef4bb981
commit
01c87e24da
1 changed files with 8 additions and 9 deletions
Loading…
Reference in new issue