diff --git a/ChangeLog b/ChangeLog index 3924743b04..1df1d62966 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ Mon Dec 3 16:06:57 2001 WATANABE Hirofumi * ext/socket/extconf.rb: remove -L/usr/local/lib. + * configure.in: add -Wl,-export-dynamic on NetBSD. + Mon Dec 3 16:04:16 2001 Usaku Nakamura * configure.in: not use X11BASE, since it's not always set. diff --git a/configure.in b/configure.in index 0ea72b10c9..4bba1828c6 100644 --- a/configure.in +++ b/configure.in @@ -607,7 +607,9 @@ if test "$with_dln_a_out" != yes; then fi rb_cv_dlopen=yes ;; netbsd*) LDSHARED='${CC} -shared' - LDFLAGS="" + if test "$rb_cv_binary_elf" = yes; then + LDFLAGS="-Wl,-export-dynamic" + fi rb_cv_dlopen=yes ;; openbsd*) LDSHARED="ld -Bforcearchive -Bshareable" rb_cv_dlopen=yes ;;