Files
openwrt-R7800-nss/package/libs
Jo-Philipp Wich 3f5e39e960 zlib: only enable NEON optimizations on eligible targets
Instead of inferring the availability of NEON support from the target
optimization flags, use a preprocessor test to decide whether to enable
ARMv8 NEON optimizations.

Fixes the following build error spotted by the mediatek/32 buildbot:

    [ 26%] Building C object CMakeFiles/zlib.dir/contrib/arm/inflate.o
    In file included from .../zlib-1.2.11/contrib/arm/chunkcopy.h:10:0,
                     from .../zlib-1.2.11/contrib/arm/inflate.c:87:
    .../arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
     #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
      ^
    In file included from .../zlib-1.2.11/contrib/arm/inflate.c:87:0:
    .../zlib-1.2.11/contrib/arm/chunkcopy.h:18:9: error: unknown type name 'uint8x16_t'
     typedef uint8x16_t chunkcopy_chunk_t;
             ^
    [...]
    CMakeFiles/zlib.dir/build.make:302: recipe for target 'CMakeFiles/zlib.dir/contrib/arm/inflate.o' failed

Fixes: 3acecba520 "package/libs/zlib: Add ARM and NEON optimizations"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-07 12:33:47 +01:00
..
2017-01-03 14:24:33 +01:00
2016-12-16 22:39:22 +01:00
2016-12-16 22:39:22 +01:00
2017-10-15 00:24:22 +02:00
2017-03-22 09:16:23 +01:00
2017-11-06 10:06:35 +01:00
2017-01-03 14:24:33 +01:00
2016-12-16 22:39:22 +01:00
2017-12-24 17:06:16 +01:00
2017-12-08 10:47:51 +01:00
2016-12-16 22:39:22 +01:00
2017-05-11 13:42:55 -07:00
2017-12-12 17:39:52 +01:00