summaryrefslogtreecommitdiff
path: root/hints/freebsd.sh
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2017-05-22 21:25:18 -0400
committerJames E Keenan <jkeenan@cpan.org>2017-06-03 18:22:46 -0400
commit21a33adc37856aaedd4bf756d5dca47bdc4f7b50 (patch)
tree18bcbe934383247b61093a0d4df3b4794fe0f0b7 /hints/freebsd.sh
parent66c5e3f2ab554a89dfc00689602414ac21ea66f6 (diff)
downloadperl-21a33adc37856aaedd4bf756d5dca47bdc4f7b50.tar.gz
When building with g++ on FreeBSD, explicitly set 'usedl' and 'dlsrc'.
For: https://rt.perl.org/Ticket/Display.html?id=131337 Signed-off-by: James E Keenan <jkeenan@cpan.org>
Diffstat (limited to 'hints/freebsd.sh')
-rw-r--r--hints/freebsd.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hints/freebsd.sh b/hints/freebsd.sh
index e5ecea8db9..fc6d73f87b 100644
--- a/hints/freebsd.sh
+++ b/hints/freebsd.sh
@@ -320,3 +320,12 @@ d_printf_format_null='undef'
# As of 10.3-RELEASE FreeBSD. See [perl #128867]
d_uselocale='undef'
+
+# https://rt.perl.org/Ticket/Display.html?id=131337
+case "$cc" in
+*g++*)
+ usedl='define'
+ dlsrc='dl_dlopen.xs'
+ ;;
+esac
+