-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the gem build on TruffleRuby (#27660)
* replace darwin checks in extconf.rb to exclude TruffleRuby * inherit RANLIB and STRIP from RbConfig, set LDXX * enable overriding ranlib command in top-level makefile * ensure the -no_warning_for_no_symbols flag is only used with Apple's ranlib * don't embed openssl & zlib on truffleruby * add RbConfig's cppflag to CPPFLAGS when using TruffleRuby * this ensure the paths to find the system's OpenSSL are set up correctly with TruffleRuby (includes being able to find an OpenSSL installed via Homebrew etc) * don't statically link standard libraries on Linux with Truffleruby * This does not work when compiling to bitcode. * Prefer SIGTERM to SIGQUIT for graceful shutdown in examples * Overriding SIGQUIT is suboptimal, for example on JVM where it is very useful to dump the thread stacktraces. * Keep the rb_tr_abi_version symbol for TruffleRuby in grpc_c.so * Otherwise TruffleRuby cannot verify the ABI version is correct. * See oracle/truffleruby#2386 * Use RbConfig::CONFIG['STRIP'] instead of just `strip` * Use a local variable for apple_toolchain for consistency * Add a comment about -static-libgcc -static-libstdc++ and TruffleRuby * Split comment into two for openssl/zlib Co-authored-by: Nicolas Laurent <nicolas.laurent@oracle.com>
- Loading branch information
Showing
7 changed files
with
85 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
_Init_grpc_c | ||
_rb_tr_abi_version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
grpc_1.0 { | ||
global: | ||
Init_grpc_c; | ||
rb_tr_abi_version; | ||
local: | ||
*; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters