From 48de9684b95e9aad03473fa1a00b640bbf428d12 Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 1 Dec 2015 21:52:02 +0000 Subject: * missing/explicit_bzero.c: add ruby_explicit_bzero_hook_unused for preventing optimization. Inspired from OpenBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 2f8d4af02e..0f42782f55 100644 --- a/configure.in +++ b/configure.in @@ -1752,6 +1752,10 @@ RUBY_FUNC_ATTRIBUTE(deprecated, DEPRECATED) RUBY_FUNC_ATTRIBUTE(deprecated("by "@%:@n), DEPRECATED_BY(n,x), rb_cv_func_deprecated_by) RUBY_TYPE_ATTRIBUTE(deprecated mesg, DEPRECATED_TYPE(mesg,x), rb_cv_type_deprecated) RUBY_FUNC_ATTRIBUTE(noinline, NOINLINE) +RUBY_FUNC_ATTRIBUTE(weak, WEAK, rb_cv_func_weak) +if test "$rb_cv_func_weak" != x; then + AC_DEFINE(HAVE_FUNC_WEAK) +fi if_i386=${universal_binary+[defined __i386__]} RUBY_FUNC_ATTRIBUTE(stdcall, [], [], ${if_i386}) -- cgit v1.2.3