[sr-dev] git:master:1473e85d: app_ruby: try to detect ruby lib version

Daniel-Constantin Mierla miconda at gmail.com
Wed May 30 17:48:50 CEST 2018


Module: kamailio
Branch: master
Commit: 1473e85da090083caa8ca880855b3ce948f147de
URL: https://github.com/kamailio/kamailio/commit/1473e85da090083caa8ca880855b3ce948f147de

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1473e85da090083caa8ca880855b3ce948f147de.diff
Patch: https://github.com/kamailio/kamailio/commit/1473e85da090083caa8ca880855b3ce948f147de.patch

---

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),)




More information about the sr-dev mailing list