diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
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 ;; |