1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: add local libdir to link with grpc
d/rules set TOPDIR to installed library directory.
Forwarded: not-needed
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2024-08-11
---
--- a/src/ruby/ext/grpc/extconf.rb
+++ b/src/ruby/ext/grpc/extconf.rb
@@ -95,6 +95,8 @@ env_append 'CPPFLAGS', '-DGRPC_POSIX_FOR
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
strip_tool = RbConfig::CONFIG['STRIP']
strip_tool += ' -x' if apple_toolchain
|