This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Linux and Solaris hints: C++ vs dlerror
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 10 Oct 2006 14:00:40 +0000 (17:00 +0300)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 10 Oct 2006 11:20:19 +0000 (11:20 +0000)
Message-ID: <452B7D58.1090009@iki.fi>

p4raw-id: //depot/perl@28979

hints/linux.sh
hints/solaris_2.sh

index 7fc151d..2415136 100644 (file)
@@ -364,3 +364,11 @@ case "$cc" in
        ;;
 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
index fcb7233..6bf63f7 100644 (file)
@@ -643,8 +643,11 @@ rm -f try.c try.o try a.out
 # (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