Message-ID: <
452B7D58.1090009@iki.fi>
p4raw-id: //depot/perl@28979
;;
esac
+# If using g++, the Configure scan for dlopen() and (especially)
+# dlerror() might fail, easier just to forcibly hint them in.
+case "$cc" in
+*g++*)
+ d_dlopen='define'
+ d_dlerror='define'
+ ;;
+esac
# (2) #include <dlfcn.h> is needed, *and* a cast to (void*(*)())
# is needed for the &dlopen. Adding any of these would require changing
# a delicate spot in Configure, so easier just to force our guess here
-# for Solaris.
+# for Solaris. Much the same goes for dlerror().
case "$cc" in
-*g++*|*CC*) d_dlopen='define' ;;
+*g++*|*CC*)
+ d_dlopen='define'
+ d_dlerror='define'
+ ;;
esac