File: add_grpc_libdir.patch

package info (click to toggle)
grpc 1.59.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 154,304 kB
  • sloc: cpp: 1,130,928; python: 91,228; ansic: 44,612; objc: 12,369; ruby: 11,884; sh: 8,043; php: 7,588; makefile: 3,927; xml: 3,620; cs: 2,160; java: 465; pascal: 286; awk: 132; javascript: 89
file content (19 lines) | stat: -rw-r--r-- 620 bytes parent folder | download
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