Try for sem_open a second time, adding -lpthread.
This commit is contained in:
1 parent
3e9f48e2c7
commit
2de2bc908b
1 file changed
+2
-1
@@ -3,7 +3,8 @@ require 'mkmf'
|
||||
$objs = []
|
||||
|
||||
# posix semaphores
|
||||
if have_func('sem_open', 'semaphore.h')
|
||||
if have_func('sem_open', 'semaphore.h') ||
|
||||
($libs << '-lpthread' && have_func('sem_open', 'semaphore.h'))
|
||||
have_func('floorf', 'math.h') or abort("Missing required floorf() in math.h")
|
||||
have_library('m', 'floorf')
|
||||
|
||||
|
||||
Reference in new issue
Block a user