[前][次][番号順一覧][スレッド一覧]

ruby-changes:58202

From: Yusuke <ko1@a...>
Date: Thu, 10 Oct 2019 23:24:11 +0900 (JST)
Subject: [ruby-changes:58202] f845e1bc99 (master): ext/syslog/extconf.rb: add -llog for Android

https://git.ruby-lang.org/ruby.git/commit/?id=f845e1bc99

From f845e1bc9951ef40f2b3672d825aa67f6d6f8368 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Thu, 10 Oct 2019 23:21:24 +0900
Subject: ext/syslog/extconf.rb: add -llog for Android

Otherwise, requiring syslog results in:

    cannot locate symbol "__android_log_print" referenced by "syslog.so"

diff --git a/ext/syslog/extconf.rb b/ext/syslog/extconf.rb
index 3bfea1f..1230a4d 100644
--- a/ext/syslog/extconf.rb
+++ b/ext/syslog/extconf.rb
@@ -4,6 +4,8 @@ https://github.com/ruby/ruby/blob/trunk/ext/syslog/extconf.rb#L4
 
 require 'mkmf'
 
+have_library("log") # for Android
+
 have_header("syslog.h") &&
   have_func("openlog") &&
   have_func("setlogmask") &&
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]