diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-05 22:33:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-05 22:33:18 +0000 |
commit | 967e92af874b33b739c349633f091033645f831e (patch) | |
tree | 1ba7b463230c9c1e8e915f62280e8ab13b00ac99 /configure.in | |
parent | 8f5689bf3c6dd9bf56caa63a7d3fca7be70f3869 (diff) | |
download | ruby-967e92af874b33b739c349633f091033645f831e.tar.gz |
* 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
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e0f8f6444f..43962e026c 100644 --- a/configure.in +++ b/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 |