From: Jarkko Hietaniemi Date: Fri, 18 Aug 2006 15:48:34 +0000 (+0300) Subject: g++/Solaris: force d_dlopen=define X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6c86a5decffbcc9e070ab10ead129ef138d02434;p=p5sagit%2Fp5-mst-13.2.git g++/Solaris: force d_dlopen=define Message-Id: <200608181248.k7ICmY2W028375@vipunen.hut.fi> p4raw-id: //depot/perl@28737 --- diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 4eb2c72..4668edd 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -637,3 +637,14 @@ fi EOOVER rm -f try.c try.o try a.out + +# If using g++, the Configure scan for dlopen() will fail in Solaris +# because one of the two (1) an extern "C" linkage definition is needed +# (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. +case "$cc" in +*g++*) d_dlopen='define' ;; +esac +