Module: kamailio Branch: master Commit: 1473e85da090083caa8ca880855b3ce948f147de URL: https://github.com/kamailio/kamailio/commit/1473e85da090083caa8ca880855b3ce9...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2018-05-30T17:48:30+02:00
app_ruby: try to detect ruby lib version
---
Modified: src/modules/app_ruby/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/1473e85da090083caa8ca880855b3ce9... Patch: https://github.com/kamailio/kamailio/commit/1473e85da090083caa8ca880855b3ce9...
---
diff --git a/src/modules/app_ruby/Makefile b/src/modules/app_ruby/Makefile index d3cb339ed9..341dc4fb75 100644 --- a/src/modules/app_ruby/Makefile +++ b/src/modules/app_ruby/Makefile @@ -7,8 +7,10 @@ include ../../Makefile.defs auto_gen= NAME=app_ruby.so
-RUBYVER=ruby-2.5 - +RUBYVER=$(shell pkg-config --list-all | grep ruby-2 | tail -1 | cut -f 1 -d " ") +ifeq ($(RUBYVER),) +RUBYVER=ruby-2.3 +endif ifeq ($(CROSS_COMPILE),) BUILDER = $(shell which pkg-config) ifneq ($(BUILDER),)