зеркало из https://github.com/github/memcached.git
i thought mkmf did that automatically... oh well
This commit is contained in:
Родитель
4fd9e56a94
Коммит
dd2325cd7c
|
@ -12,6 +12,13 @@ if ENV['DEBUG']
|
|||
end
|
||||
|
||||
dir_config 'libmemcached'
|
||||
find_library 'memcached', 'memcached_server_add'
|
||||
find_header 'libmemcached/memcached.h', *ENV['INCLUDE_PATH'].to_s.split(":")
|
||||
|
||||
# XXX There's probably a better way to do this
|
||||
unless find_library 'memcached', 'memcached_server_add', *ENV['LD_LIBRARY_PATH'].to_s.split(":")
|
||||
raise "shared library 'libmemcached' not found"
|
||||
end
|
||||
unless find_header 'libmemcached/memcached.h', *ENV['INCLUDE_PATH'].to_s.split(":")
|
||||
raise "header file 'libmemcached/memcached.h' not found"
|
||||
end
|
||||
|
||||
create_makefile 'libmemcached'
|
||||
|
|
Загрузка…
Ссылка в новой задаче