Mercurial > hg > orthanc
changeset 4969:3c3bb0181e96
fix LibPNG build for Apple M1
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 28 Mar 2022 23:33:25 +0200 |
parents | 1b6b88f017b9 |
children | 2e3006382c22 |
files | OrthancFramework/Resources/CMake/LibPngConfiguration.cmake |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/LibPngConfiguration.cmake Mon Mar 28 21:20:48 2022 +0200 +++ b/OrthancFramework/Resources/CMake/LibPngConfiguration.cmake Mon Mar 28 23:33:25 2022 +0200 @@ -59,6 +59,8 @@ -DPNG_NO_CONFIG_H=1 -DPNG_NO_CONSOLE_IO=1 -DPNG_NO_STDIO=1 + # disable ARM neon optimization for Apple M1 builds (TODO: try adding arm/filter_neon_intrinscis.c ... ) + -DPNG_ARM_NEON_OPT=0 # The following declaration avoids "__declspec(dllexport)" in # libpng to prevent publicly exposing its symbols by the DLLs -DPNG_IMPEXP=