# HG changeset patch # User Alain Mazy # Date 1648503205 -7200 # Node ID 3c3bb0181e96c625dd705be231e2cc8a38777389 # Parent 1b6b88f017b9b0457fb454d578e61e94ba476641 fix LibPNG build for Apple M1 diff -r 1b6b88f017b9 -r 3c3bb0181e96 OrthancFramework/Resources/CMake/LibPngConfiguration.cmake --- 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=