$NetBSD: patch-ad,v 1.1 2006/01/02 02:21:30 ben Exp $

--- configure.orig	Mon Aug 25 01:03:42 2003
+++ configure
@@ -3316,7 +3316,8 @@ ac_export_dynamic=no
 fi
 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 fi
-test $ac_export_dynamic = yes|| LDFLAGS=$OLDLDFLAGS
+#test $ac_export_dynamic = yes|| LDFLAGS=$OLDLDFLAGS
+LDFLAGS=$OLDLDFLAGS
 echo "$as_me:$LINENO: result: $ac_export_dynamic" >&5
 echo "${ECHO_T}$ac_export_dynamic" >&6
 
@@ -10853,6 +10854,8 @@ do
   mv conftest.tail conftest.undefs
 done
 rm -f conftest.undefs
+
+test $ac_export_dynamic = yes && LDFLAGS="$LDFLAGS -export-dynamic"
 
 cat >>$CONFIG_STATUS <<\_ACEOF
   # Let's still pretend it is `configure' which instantiates (i.e., don't
