File: add_grpc_libdir.patch

package info (click to toggle)
grpc 1.51.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 76,144 kB
  • sloc: cpp: 361,866; python: 72,206; ansic: 37,778; objc: 12,434; ruby: 11,521; sh: 7,652; php: 7,615; makefile: 3,481; xml: 3,246; cs: 1,836; javascript: 1,614; java: 465; pascal: 227; awk: 132
file content (19 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
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: 2022-11-13

---

--- grpc-1.24.0.orig/src/ruby/ext/grpc/extconf.rb
+++ grpc-1.24.0/src/ruby/ext/grpc/extconf.rb
@@ -95,6 +95,8 @@ env_append 'CPPFLAGS', '-DGRPC_XDS_USER_
 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 << ' -DGRPC_RUBY_WINDOWS_UCRT' if windows_ucrt
 $CFLAGS << ' -I' + File.join(grpc_root, 'include')