summaryrefslogtreecommitdiff
path: root/ext/syslog
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-10 23:21:24 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-10 23:21:24 +0900
commitf845e1bc9951ef40f2b3672d825aa67f6d6f8368 (patch)
treecbe79e858c32788a3023ca7d43fb364d3c8271db /ext/syslog
parenta886d5cb79e2440eb6cf422723e08447ee4735db (diff)
downloadruby-f845e1bc9951ef40f2b3672d825aa67f6d6f8368.tar.gz
ext/syslog/extconf.rb: add -llog for Android
Otherwise, requiring syslog results in: cannot locate symbol "__android_log_print" referenced by "syslog.so"
Diffstat (limited to 'ext/syslog')
-rw-r--r--ext/syslog/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/syslog/extconf.rb b/ext/syslog/extconf.rb
index 3bfea1fa73..1230a4d52e 100644
--- a/ext/syslog/extconf.rb
+++ b/ext/syslog/extconf.rb
@@ -4,6 +4,8 @@
require 'mkmf'
+have_library("log") # for Android
+
have_header("syslog.h") &&
have_func("openlog") &&
have_func("setlogmask") &&