summaryrefslogtreecommitdiff
path: root/ext/ffi_c/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_c/extconf.rb')
-rwxr-xr-xext/ffi_c/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ffi_c/extconf.rb b/ext/ffi_c/extconf.rb
index 2484543..a03b433 100755
--- a/ext/ffi_c/extconf.rb
+++ b/ext/ffi_c/extconf.rb
@@ -57,6 +57,8 @@ if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
append_ldflags "-Wl,--exclude-libs,ALL"
end
+ have_func 'rb_gc_mark_movable' # since ruby-2.7
+
# Some linux archs need explicit linking to pthread, see https://github.com/ffi/ffi/issues/893
append_ldflags "-pthread"