about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorew@fbsd90-32.(none) <ew@fbsd90-32.(none)>2012-07-11 02:25:44 +0000
committerEric Wong <normalperson@yhbt.net>2012-07-12 12:30:56 -0700
commitabbe5f16a9c3e17a9a6bab39bb105dc655e55eb6 (patch)
tree44b850a052164c3189e7c48c7c14cba2a007b3dd
parent00b84b3d2d9bec7ed480a0715408148af0a0d057 (diff)
downloadruby_posix_mq-abbe5f16a9c3e17a9a6bab39bb105dc655e55eb6.tar.gz
We need to have -lrt in LDFLAGS before we can detect it.
-rw-r--r--ext/posix_mq/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix_mq/extconf.rb b/ext/posix_mq/extconf.rb
index 310de3d..db50ee3 100644
--- a/ext/posix_mq/extconf.rb
+++ b/ext/posix_mq/extconf.rb
@@ -3,7 +3,6 @@ require "mkmf"
 have_header("sys/select.h")
 have_header("signal.h")
 have_header("mqueue.h") or abort "mqueue.h header missing"
-have_func("__mq_oshandle")
 have_header("pthread.h")
 have_func("rb_str_set_len")
 have_func('rb_thread_blocking_region')
@@ -11,6 +10,7 @@ have_library("m")
 have_library("rt")
 have_library("pthread")
 
+have_func("__mq_oshandle")
 have_func("mq_timedsend")
 have_func("mq_timedreceive")
 create_makefile("posix_mq_ext")