optipng: allow build on aarch64 (#19039)

Added a patch to allow building on aarch64
This commit is contained in:
t-nojiri 2020-10-01 00:59:40 +09:00 committed by GitHub
parent c23d79c6d2
commit 70a3626af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- spack-src/configure.bak 2017-12-27 20:57:00.000000000 +0900
+++ spack-src/configure 2020-09-28 17:04:51.030223443 +0900
@@ -193,7 +193,7 @@
if test "$gccish" -ne 0
then
CC="${CC-$cc}"
- CFLAGS="${CFLAGS--O2 -Wall -Wextra}"
+ CFLAGS="${CFLAGS--O2 -Wall -Wextra -DPNG_ARM_NEON_OPT=0}"
else
CC="${CC-cc}"
CFLAGS="${CFLAGS--O}"

View File

@ -18,3 +18,5 @@ class Optipng(AutotoolsPackage, SourceforgePackage):
sourceforge_mirror_path = "optipng/optipng-0.7.7.tar.gz" sourceforge_mirror_path = "optipng/optipng-0.7.7.tar.gz"
version('0.7.7', sha256='4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452') version('0.7.7', sha256='4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452')
# See https://github.com/imagemin/optipng-bin/issues/97
patch('for_aarch64.patch', when='target=aarch64:')