| 1 |
Description: add local libdir to link with grpc |
| 2 |
d/rules set TOPDIR to installed library directory. |
| 3 |
Forwarded: not-needed |
| 4 |
Author: Laszlo Boszormenyi (GCS) <[email protected]> |
| 5 |
Last-Update: 2022-11-13 |
| 6 |
|
| 7 |
--- |
| 8 |
|
| 9 |
--- grpc-1.24.0.orig/src/ruby/ext/grpc/extconf.rb |
| 10 |
+++ grpc-1.24.0/src/ruby/ext/grpc/extconf.rb |
| 11 |
@@ -95,6 +95,8 @@ env_append 'CPPFLAGS', '-DGRPC_XDS_USER_ |
| 12 |
output_dir = File.expand_path(RbConfig::CONFIG['topdir']) |
| 13 |
grpc_lib_dir = File.join(output_dir, 'libs', grpc_config) |
| 14 |
ENV['BUILDDIR'] = output_dir |
| 15 |
+topdir = ENV['TOPDIR'] || '.' |
| 16 |
+$LDFLAGS << ' -L' + topdir |
| 17 |
|
| 18 |
$CFLAGS << ' -DGRPC_RUBY_WINDOWS_UCRT' if windows_ucrt |
| 19 |
$CFLAGS << ' -I' + File.join(grpc_root, 'include') |