diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-08-18 18:48:34 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-08-20 08:46:33 +0000 |
commit | 6c86a5decffbcc9e070ab10ead129ef138d02434 (patch) | |
tree | c299b724a1440ccff7388c6d5be2f00000a4a0e7 | |
parent | 6985a70beafa38c8206d8a4fd7bb628e6f69d025 (diff) | |
download | perl-6c86a5decffbcc9e070ab10ead129ef138d02434.tar.gz |
g++/Solaris: force d_dlopen=define
Message-Id: <200608181248.k7ICmY2W028375@vipunen.hut.fi>
p4raw-id: //depot/perl@28737
-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 + |