зеркало из https://github.com/github/ruby.git
* configure.in (RUBY_EXTERN): unnecessary after all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6e7f56fdc7
Коммит
1b1041f847
|
@ -1,3 +1,7 @@
|
|||
Thu Jul 22 20:58:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (RUBY_EXTERN): unnecessary after all.
|
||||
|
||||
Thu Jul 22 20:12:56 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* thread_pthread.c (get_stack): fix memory leak; pthread_attr_destory
|
||||
|
|
13
configure.in
13
configure.in
|
@ -269,7 +269,6 @@ if test "$GCC" = yes; then
|
|||
linker_flag=-Wl,
|
||||
: ${optflags=-O3}
|
||||
AS_CASE(["$target_os"], [linux*|darwin*], [: ${debugflags=-ggdb}])
|
||||
RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"])
|
||||
else
|
||||
linker_flag=
|
||||
fi
|
||||
|
@ -748,18 +747,6 @@ if test "$GCC" = yes; then
|
|||
fi
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([for RUBY_EXTERN], rb_cv_ruby_extern,
|
||||
[rb_cv_ruby_extern=no
|
||||
RUBY_WERROR_FLAG([
|
||||
for mac in "__attribute__((dllimport))" "__declspec(dllimport)"; do
|
||||
AC_TRY_COMPILE(
|
||||
[extern $mac void conftest(void);],
|
||||
[conftest();],
|
||||
[rb_cv_ruby_extern="extern $mac"; break])
|
||||
done])
|
||||
])
|
||||
test "x$rb_cv_ruby_extern" = xno || AC_DEFINE_UNQUOTED(RUBY_EXTERN, $rb_cv_ruby_extern)
|
||||
|
||||
RUBY_APPEND_OPTION(XCFLAGS, -DRUBY_EXPORT)
|
||||
|
||||
dnl }
|
||||
|
|
Загрузка…
Ссылка в новой задаче