diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-10-10 17:00:40 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-10-10 11:20:19 +0000 |
commit | c3faea48927502248be7f55e1cfb047fff817fa8 (patch) | |
tree | 14b8344249a63a5da4232f0ab451231500fcf322 /hints | |
parent | 1c847d4b24b4811e0a135df4f0a725e3a5ccb70b (diff) | |
download | perl-c3faea48927502248be7f55e1cfb047fff817fa8.tar.gz |
Linux and Solaris hints: C++ vs dlerror
Message-ID: <452B7D58.1090009@iki.fi>
p4raw-id: //depot/perl@28979
Diffstat (limited to 'hints')
-rw-r--r-- | hints/linux.sh | 8 | ||||
-rw-r--r-- | hints/solaris_2.sh | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index 7fc151d92e..24151361ce 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 fcb7233794..6bf63f7576 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 <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. +# 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 |