mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in (rb_cv_export_prefix): check for prefixed
underscore of exported symbols git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f5689bf3c
commit
967e92af87
2 changed files with 13 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
Sat Nov 6 07:30:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Nov 6 07:33:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (rb_cv_export_prefix): check for prefixed
|
||||
underscore of exported symbols
|
||||
|
||||
* tool/rbinstall.rb (bin-comm): prepend prolog shell script if
|
||||
necessary.
|
||||
|
|
10
configure.in
10
configure.in
|
@ -2344,6 +2344,13 @@ AC_SUBST(INSTALLDOC)
|
|||
if test "$rb_with_pthread" = "yes"; then
|
||||
THREAD_MODEL=pthread
|
||||
fi
|
||||
AC_CACHE_CHECK([for prefixed underscore of exported symbols], rb_cv_export_prefix, [
|
||||
AC_TRY_COMPILE([extern void conftest_exported(void) {}], [], [
|
||||
rb_cv_export_prefix=`$NM conftest.$ac_objext |
|
||||
sed -n ['s/.*\(_\)conftest_exported.*/\1/p']`
|
||||
],
|
||||
[rb_cv_export_prefix=''])
|
||||
])
|
||||
MINIDLNOBJ=dmydln.o
|
||||
AS_CASE(["$target_os"],
|
||||
[linux*], [
|
||||
|
@ -2409,7 +2416,8 @@ AS_CASE(["$target_os"],
|
|||
LIBRUBY_SO='$(RUBY_SO_NAME)'.dll
|
||||
LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)'
|
||||
fi
|
||||
EXPORT_PREFIX=' '
|
||||
test -z "$rb_cv_export_prefix" && rb_cv_export_prefix=' '
|
||||
EXPORT_PREFIX="$rb_cv_export_prefix"
|
||||
DLDFLAGS="${DLDFLAGS}"' $(DEFFILE)'
|
||||
AC_LIBOBJ([win32])
|
||||
COMMON_LIBS=m
|
||||
|
|
Loading…
Reference in a new issue