ruby: Fix syslog module to link against liblog

Fixes #962.
This commit is contained in:
Fredrik Fornwall 2017-04-26 23:20:01 +02:00
parent e156cc12fd
commit 2b6ca764bb
2 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.ruby-lang.org/
TERMUX_PKG_DESCRIPTION="Dynamic programming language with a focus on simplicity and productivity"
_MAJOR_VERSION=2.4
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://cache.ruby-lang.org/pub/ruby/${_MAJOR_VERSION}/ruby-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=4fc8a9992de3e90191de369270ea4b6c1b171b7941743614cc50822ddc1fe654
# libbffi is used by the fiddle extension module:

View File

@ -0,0 +1,10 @@
diff -u -r ../ruby-2.4.1/ext/syslog/extconf.rb ./ext/syslog/extconf.rb
--- ../ruby-2.4.1/ext/syslog/extconf.rb 2015-12-16 06:31:54.000000000 +0100
+++ ./ext/syslog/extconf.rb 2017-04-26 22:52:43.683243769 +0200
@@ -7,5 +7,6 @@
have_header("syslog.h") &&
have_func("openlog") &&
have_func("setlogmask") &&
+ have_library("log", "__android_log_write") &&
create_makefile("syslog")