From 88613805905edc8e3fa39326813f6f7220a14ad4 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sat, 17 Apr 2021 18:37:44 +0900 Subject: [PATCH 1/2] Set THREADSAFE=0 only if usethreads is undef and pthreads is not linked --- Makefile.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index aa2244c..548ca38 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -262,7 +262,7 @@ if ( $^O eq 'cygwin') { if ( $Config{d_usleep} || $Config{osname} =~ m/linux/ ) { push @CC_DEFINE, '-DHAVE_USLEEP=1'; } -unless ( $Config{usethreads} ) { +if ( !$Config{usethreads} and $Config{libs} !~ /pthreads/ ) { push @CC_DEFINE, '-DTHREADSAFE=0'; } if ($^O eq 'hpux' and $Config{osvers} <= 10.20) { From cedc9d46579a6aeaaea81e6cdc18ec73eb9fbbc1 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sat, 17 Apr 2021 18:38:00 +0900 Subject: [PATCH 2/2] Test with a few more perls --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b552e66..9ae21c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,10 @@ jobs: matrix: perl-version: - '5.8' + - '5.10' + - '5.18' + - '5.20' + - '5.26' - 'latest' container: