efl: fix a neon build break. 61/82561/2
authorHermet Park <hermet@hermet.pe.kr>
Thu, 4 Aug 2016 06:43:41 +0000 (15:43 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 4 Aug 2016 07:57:40 +0000 (00:57 -0700)
We found a some build break problem due to a build system.

In efl configuration, our efl configure enables neon if it's available,
but neon gonna partially turned off on evas compilation if the build system
has a non neon CFLAG option (ie, mfpu=vfpv..). In the end, neon is partially enabled
and it turns out a build break.

It's non-sense but we can't allow this breakage.

There is no way to ignore build system option nor override our neon option perfectly,
so, Let efl package ruled by build system overall.

http://git.enlightenment.org/core/efl.git/commit/?id=77d2e0cb959b9e7ecc6ffc09b67031ac3687f332

Change-Id: Ie94e277b206830a517a4fb33f1187b1fa785d243

configure.ac

index e9e29ae..5741933 100755 (executable)
@@ -563,7 +563,7 @@ case $host_cpu in
        build_cpu_neon="yes"
        AC_MSG_CHECKING([whether to use NEON instructions])
        CFLAGS_save="${CFLAGS}"
-       CFLAGS="${CFLAGS} -mfpu=neon -ftree-vectorize"
+       CFLAGS="-mfpu=neon -ftree-vectorize ${CFLAGS}"
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <arm_neon.h>]], [[asm volatile ("vqadd.u8 d0, d1, d0\n")]])],[
            AC_MSG_RESULT([yes])
            AC_DEFINE([BUILD_NEON], [1], [Build NEON Code])