This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Facilitate building with quadmath on Cygwin.
authorPeter John Acklam <pjacklam@online.no>
Sun, 7 Jan 2018 13:28:58 +0000 (08:28 -0500)
committerJames E Keenan <jkeenan@cpan.org>
Sun, 7 Jan 2018 13:28:58 +0000 (08:28 -0500)
For: RT # 128627

ext/POSIX/Makefile.PL

index 6e40f59..1ed4d32 100644 (file)
@@ -20,6 +20,9 @@ if ($^O eq 'solaris') {
 if ($^O eq 'aix' && $Config{uselongdouble}) {
     push @libs, qw(c128);
 }
+if ($^O eq 'cygwin' && $Config{usequadmath}) {
+    push @libs, qw(quadmath);
+}
 WriteMakefile(
     NAME       => 'POSIX',
     @libs ? ( 'LIBS' => [ join(" ", map { "-l$_" } @libs) ] ) : (),