X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fsolaris_2.sh;h=82e394123885fb7785331ad4bf65511e694d4e41;hb=696814337d4eac8d0663d5307d6e01964d1b2897;hp=4eb2c72481206f717f7152b8a0b95022423c2359;hpb=86c5d995f6ffb0e2543edef6c652cde2171570df;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 4eb2c72..82e3941 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -404,13 +404,6 @@ EOM if test "`arch`" = i86pc -a `uname -r` = 5.6 && \ ${cc:-cc} try.c -lpthread >/dev/null 2>&1 && ./a.out; then d_sigsetjmp=$undef - cat << 'EOM' >&2 - -You will see a *** WHOA THERE!!! *** message from Configure for -d_sigsetjmp. Keep the recommended value. See hints/solaris_2.sh -for more information. - -EOM fi # These prototypes should be visible since we using @@ -637,3 +630,17 @@ fi EOOVER rm -f try.c try.o try a.out + +# If using C++, 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. Much the same goes for dlerror(). +case "$cc" in +*g++*|*CC*) + d_dlopen='define' + d_dlerror='define' + ;; +esac +