This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
When building with g++ on FreeBSD, explicitly set 'usedl' and 'dlsrc'.
authorJames E Keenan <jkeenan@cpan.org>
Tue, 23 May 2017 01:25:18 +0000 (21:25 -0400)
committerJames E Keenan <jkeenan@cpan.org>
Sat, 3 Jun 2017 22:22:46 +0000 (18:22 -0400)
For: https://rt.perl.org/Ticket/Display.html?id=131337
Signed-off-by: James E Keenan <jkeenan@cpan.org>
hints/freebsd.sh

index e5ecea8..fc6d73f 100644 (file)
@@ -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
+