summaryrefslogtreecommitdiff
path: root/hints/freebsd.sh
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2017-06-12 08:02:10 -0400
committerAndy Dougherty <doughera@lafayette.edu>2017-06-12 15:06:53 -0400
commit2c8efe4079b75c61cf34425054539a9c24913e9f (patch)
treee5480673d50332577d7962e3a141020395245fd9 /hints/freebsd.sh
parent9287cc840c2c31d0850ec27d031eeb1df6fd8e4d (diff)
downloadperl-2c8efe4079b75c61cf34425054539a9c24913e9f.tar.gz
Simpler hints fix for [perl #131337].
The Configure scan fails to find dlopen() with g++. Explicitly making it availble allows Configure to default to using dynamic loading, but still allows the user to override and use static loading.
Diffstat (limited to 'hints/freebsd.sh')
-rw-r--r--hints/freebsd.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index fc6d73f87b..b3422c9ecc 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -322,10 +322,12 @@ d_printf_format_null='undef'
d_uselocale='undef'
# https://rt.perl.org/Ticket/Display.html?id=131337
+# Reported in 11.0-CURRENT with g++-4.8.5:
+# If using g++, the Configure scan for dlopen() fails.
+# Easier for now to just to forcibly set it.
case "$cc" in
*g++*)
- usedl='define'
- dlsrc='dl_dlopen.xs'
+ d_dlopen='define'
;;
esac