From b4d1734bc620228e042becfb8d3e19dff367a18f Mon Sep 17 00:00:00 2001 From: "Laszlo Boszormenyi (GCS)" Date: Tue, 27 Nov 2018 16:58:17 +0000 Subject: [PATCH] add local libdir to link with grpc Forwarded: not-needed Last-Update: 2018-06-21 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 c9fc5c81..4da9e281 100644 --- a/src/ruby/ext/grpc/extconf.rb +++ b/src/ruby/ext/grpc/extconf.rb @@ -41,6 +41,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') $LDFLAGS << ' ' + '-Wl,-wrap,memcpy -lgrpc' unless windows -- 2.30.2