diff options
Diffstat (limited to 'hints')
-rw-r--r-- | hints/solaris_2.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 4eb2c72481..4668eddd42 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 <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. +case "$cc" in +*g++*) d_dlopen='define' ;; +esac + |