I mostly want this library to remain in lockstep with what is considered the stable version of libmdbx, and if you require a past version, just pin it. In this case however, the breakage outweighs adding a simple compatibility check. Closes 1f1f5e4c44188a9cd1d9f83fd8fdb1afe3dd7e29. FossilOrigin-Name: 89b49806a28078e58b3c93f5fee2ff11290405a9c4b42ba11a4412d73eafd8aa
16 lines
357 B
Ruby
Executable file
16 lines
357 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
# vim: set noet sta sw=4 ts=4 :
|
|
|
|
require 'mkmf'
|
|
|
|
$CFLAGS << ' -Wno-suggest-attribute=format'
|
|
$CFLAGS << ' -Wno-unknown-warning-option'
|
|
|
|
have_library( 'mdbx' ) or abort "No mdbx library!"
|
|
have_header( 'mdbx.h' ) or abort "No mdbx.h header!"
|
|
|
|
have_const( 'MDBX_NOSTICKYTHREADS', 'mdbx.h' )
|
|
|
|
create_header()
|
|
create_makefile( 'mdbx_ext' )
|
|
|