From: Jarkko Hietaniemi Date: Tue, 10 Oct 2006 14:00:40 +0000 (+0300) Subject: Linux and Solaris hints: C++ vs dlerror X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c3faea48927502248be7f55e1cfb047fff817fa8;p=p5sagit%2Fp5-mst-13.2.git Linux and Solaris hints: C++ vs dlerror Message-ID: <452B7D58.1090009@iki.fi> p4raw-id: //depot/perl@28979 --- diff --git a/hints/linux.sh b/hints/linux.sh index 7fc151d..2415136 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -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 diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index fcb7233..6bf63f7 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -643,8 +643,11 @@ rm -f try.c try.o try a.out # (2) #include 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