Index: ruby-1.8.7-p249/configure.in =================================================================== --- ruby-1.8.7-p249.orig/configure.in +++ ruby-1.8.7-p249/configure.in @@ -1183,7 +1183,7 @@ if test "$with_dln_a_out" != yes; then linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi*) : ${LDSHARED='${CC} -shared'} if test "$rb_cv_binary_elf" = yes; then - LDFLAGS="$LDFLAGS -Wl,-export-dynamic" + LDFLAGS="$LDFLAGS -Wl,-export-dynamic -Wl,--no-undefined" fi rb_cv_dlopen=yes ;; interix*) : ${LDSHARED="$CC -shared"}