Module: kamailio Branch: master Commit: 1473e85da090083caa8ca880855b3ce948f147de URL: https://github.com/kamailio/kamailio/commit/1473e85da090083caa8ca880855b3ce948f147de
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> 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),) _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
