projects
/
grpc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d49280
)
add local libdir to link with grpc
author
Laszlo Boszormenyi (GCS)
<gcs@debian.org>
Tue, 27 Nov 2018 16:58:17 +0000
(16:58 +0000)
committer
Laszlo Boszormenyi (GCS)
<gcs@debian.org>
Tue, 27 Nov 2018 16:58:17 +0000
(16:58 +0000)
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
patch
|
blob
|
history
diff --git
a/src/ruby/ext/grpc/extconf.rb
b/src/ruby/ext/grpc/extconf.rb
index c9fc5c811fa5c2f5b178526b78810cacd95436f8..4da9e281e7e650f10ee3f25d3482713624fd2e2d 100644
(file)
--- 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