From 0a739a7c8ddfaefa14b90008c87e172485eaae76 Mon Sep 17 00:00:00 2001 From: "Laszlo Boszormenyi (GCS)" Date: Sun, 25 Sep 2022 19:03:42 +0100 Subject: [PATCH] add local libdir to link with grpc Forwarded: not-needed Last-Update: 2019-09-30 d/rules set TOPDIR to installed library directory. Gbp-Pq: Name add_grpc_libdir.patch --- src/ruby/ext/grpc/extconf.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ruby/ext/grpc/extconf.rb b/src/ruby/ext/grpc/extconf.rb index 1d0cf7d9..79540f2e 100644 --- a/src/ruby/ext/grpc/extconf.rb +++ b/src/ruby/ext/grpc/extconf.rb @@ -49,6 +49,8 @@ ENV['CPPFLAGS'] = '-DGPR_BACKWARDS_COMPATIBILITY_MODE' output_dir = File.expand_path(RbConfig::CONFIG['topdir']) grpc_lib_dir = File.join(output_dir, 'libs', grpc_config) ENV['BUILDDIR'] = output_dir +topdir = ENV['TOPDIR'] || '.' +$LDFLAGS << ' -L' + topdir $CFLAGS << ' -I' + File.join(grpc_root, 'include') -- 2.30.2