From f8b66eab6ac1400d5f310b52e954010e943589af Mon Sep 17 00:00:00 2001 From: temiola Date: Tue, 6 Jan 2015 17:51:48 -0800 Subject: Updates extconf.rb to use grpc from the make install locations Change on 2015/01/06 by temiola ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83391947 --- src/ruby/ext/grpc/extconf.rb | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'src/ruby') diff --git a/src/ruby/ext/grpc/extconf.rb b/src/ruby/ext/grpc/extconf.rb index 9a181f5859..a828b47294 100644 --- a/src/ruby/ext/grpc/extconf.rb +++ b/src/ruby/ext/grpc/extconf.rb @@ -33,37 +33,25 @@ LIBDIR = RbConfig::CONFIG['libdir'] INCLUDEDIR = RbConfig::CONFIG['includedir'] HEADER_DIRS = [ - # First search the local development dir - ENV['HOME'] + '/grpc_dev/include', - - # Then search /opt/local (Mac) + # Search /opt/local (Mac source install) '/opt/local/include', - # Then search /usr/local (Source install) + # Search /usr/local (Source install) '/usr/local/include', # Check the ruby install locations INCLUDEDIR, - - # Finally fall back to /usr - '/usr/include' ] LIB_DIRS = [ - # First search the local development dir - ENV['HOME'] + '/grpc_dev/lib', - - # Then search /opt/local for (Mac) + # Search /opt/local (Mac source install) '/opt/local/lib', - # Then search /usr/local (Source install) + # Search /usr/local (Source install) '/usr/local/lib', # Check the ruby install locations LIBDIR, - - # Finally fall back to /usr - '/usr/lib' ] def crash(msg) @@ -80,9 +68,7 @@ $CFLAGS << ' -Wno-return-type ' $CFLAGS << ' -Wall ' $CFLAGS << ' -pedantic ' -$LDFLAGS << ' -lgrpc -lgpr -levent -levent_pthreads -levent_core ' -$LDFLAGS << ' -lssl -lcrypto ' -$DLDFLAGS << ' -Wl,-rpath,/usr/local/ssl/lib ' +$LDFLAGS << ' -lgrpc -lgpr -levent -levent_pthreads -levent_core' # crash('need grpc lib') unless have_library('grpc', 'grpc_channel_destroy') # -- cgit v1.2.3