summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter John Acklam <pjacklam@gmail.com>2020-04-11 14:28:10 +0200
committerSawyer X <xsawyerx@cpan.org>2020-05-25 10:16:07 +0300
commit1888563ebbb442c601e70582d42c33fd13d75257 (patch)
tree2206014f48493a9eca09e096451998164087ec19
parente89ef0f1ec6b80efc851176a79596e9847e49ede (diff)
downloadperl-1888563ebbb442c601e70582d42c33fd13d75257.tar.gz
Add quadmath to list of libraries.
-rw-r--r--ext/re/Makefile.PL5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/re/Makefile.PL b/ext/re/Makefile.PL
index 4a2193401a..f3bdcfdc69 100644
--- a/ext/re/Makefile.PL
+++ b/ext/re/Makefile.PL
@@ -6,8 +6,13 @@ my $object = 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)';
my $defines = '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT';
+my @libs;
+if ($^O eq 'cygwin' && $Config{usequadmath}) {
+ push @libs, qw(quadmath);
+}
WriteMakefile(
NAME => 're',
+ @libs ? ( 'LIBS' => [ join(" ", map { "-l$_" } @libs) ] ) : (),
VERSION_FROM => 're.pm',
XSPROTOARG => '-noprototypes',
OBJECT => $object,