From 21a33adc37856aaedd4bf756d5dca47bdc4f7b50 Mon Sep 17 00:00:00 2001 From: James E Keenan Date: Mon, 22 May 2017 21:25:18 -0400 Subject: [PATCH] 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 --- hints/freebsd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hints/freebsd.sh b/hints/freebsd.sh index e5ecea8db9eb..fc6d73f87b5b 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 +