Graham: I don't have any FreeBSD systems running. Are you able to
look at the FreeBSD "FAIL" reports that showed up after I applied your
patch, and render an opinion as to what's the matter?
I appreciate it, if you find the time.
Dave
On Thu, Jan 30, 2014 at 5:01 PM, Graham Ollis via RT
<bug-Inline-CPP@rt.cpan.org> wrote:
Show quoted text> Thu Jan 30 19:01:57 2014: Request 92595 was acted upon.
> Transaction: Ticket created by PLICEASE
> Queue: Inline-CPP
> Subject: FreeBSD 10.0 or better should use clang++
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: PLICEASE@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=92595 >
>
>
> FreeBSD 10 comes with clang as the default C++ compiler instead of g++. The attached patch will default to clang and -lc++ for FreeBSD 10 or better.
>
>
>
> index eaa5de9..29c8d04 100644
> --- a/Makefile.PL
> +++ b/Makefile.PL
> @@ -113,6 +113,11 @@ elsif ( $Config{osname} eq 'mirbsd' ) {
> $libs_guess = "-L$stdcpp -lstdc++ -lc -lgcc_s";
> }
>
> +elsif ( $Config{osname} eq 'freebsd' && $Config{osvers} =~ /^(\d+)/ && $1 >= 10 ) {
> + $cc_guess = 'clang++';
> + $libs_guess = '-lc++';
> +}
> +
> # Sane defaults for other (probably unix-like) operating systems
> else {
> $cc_guess = 'g++';
>
--
David Oswald
daoswald@gmail.com