projects
/
grpc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53a5c73
)
add local libdir to link with grpc
author
Laszlo Boszormenyi (GCS)
<gcs@debian.org>
Fri, 24 Jul 2020 15:28:01 +0000
(16:28 +0100)
committer
Laszlo Boszormenyi (GCS)
<gcs@debian.org>
Fri, 24 Jul 2020 15:28:01 +0000
(16:28 +0100)
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
patch
|
blob
|
history
diff --git
a/src/ruby/ext/grpc/extconf.rb
b/src/ruby/ext/grpc/extconf.rb
index 1d0cf7d995889748179bee0aa16ab1af224f2ea7..79540f2e96de62dd325a475474e12e99205d8e34 100644
(file)
--- 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')