In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/91d520f17278ac791dd7c34fa4045084f74e1a2c?hp=cf6e1fa1d43a0c317bbfc49f64171122b655a07e>
- Log ----------------------------------------------------------------- commit 91d520f17278ac791dd7c34fa4045084f74e1a2c Author: Jarkko Hietaniemi <[email protected]> Date: Sat Oct 18 08:24:26 2014 -0400 Digest::SHA HP-UX hints file is not helping the t/woodbury.t crash. (For which it is was created.) Neither is it in the Digest::SHA CPAN version. D cpan/Digest-SHA/hints/hpux.pl commit c4f300c9d46ec8ace48cff0477dd2866cfe10f79 Author: Jarkko Hietaniemi <[email protected]> Date: Fri Oct 17 21:54:06 2014 -0400 After Yosemite there's no /usr/include. (The headers are under /Applications/Xcode.app/...) M hints/darwin.sh ----------------------------------------------------------------------- Summary of changes: cpan/Digest-SHA/hints/hpux.pl | 16 ---------------- hints/darwin.sh | 6 ++++-- 2 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 cpan/Digest-SHA/hints/hpux.pl diff --git a/cpan/Digest-SHA/hints/hpux.pl b/cpan/Digest-SHA/hints/hpux.pl deleted file mode 100644 index 16e062f..0000000 --- a/cpan/Digest-SHA/hints/hpux.pl +++ /dev/null @@ -1,16 +0,0 @@ -# With +O2 this HP-UX cc compiler creates code which coredumps (Bus error) -# when running t/woodbury.t, but dropping to +O1 seems to dodge that. -# Also gcc seems to have similar issues, so drop the opt also there. -# Modern HP-UX cc:s understand -On, so our task is easier. -# -# This was reported also at: -# https://rt.cpan.org/Ticket/Display.html?id=96498 -# but the ticket was rejected since MSHELOR thinks Digest::SHA -# is doing nothing wrong. -if (defined $self->{OPTIMIZE}) { - $self->{OPTIMIZE} =~ s/ \+O[a-z_]+(?:=[\w,]+)?//; # Drop HP-UX +Onolimit etc. - # This will turn -O0 to -O1, but we will burn that bridge when we cross it. - $self->{OPTIMIZE} =~ s/[\+\-]O[0-9]*/-O1/; -} else { - $self->{OPTIMIZE} = '-O1'; -} diff --git a/hints/darwin.sh b/hints/darwin.sh index da79297..3e92add 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -129,9 +129,11 @@ ccflags="${ccflags} -fno-common -DPERL_DARWIN" # stdint.h defining INT32_MIN as (-INT32_MAX-1) # -- Edward Moy # -case "$(grep '^#define INT32_MIN' /usr/include/stdint.h)" in +if test -f /usr/include/stdint.h; then + case "$(grep '^#define INT32_MIN' /usr/include/stdint.h)" in *-2147483648) ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" ;; -esac + esac +fi # Avoid Apple's cpp precompiler, better for extensions if [ "X`echo | ${cc} -no-cpp-precomp -E - 2>&1 >/dev/null`" = "X" ]; then -- Perl5 Master Repository
