aboutsummaryrefslogtreecommitdiff
path: root/package/opencv3/opencv3.mk
diff options
context:
space:
mode:
authorGravatar Samuel Martin <s.martin49@gmail.com>2017-05-04 23:53:33 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-11 22:49:40 +0200
commit86666f3a21a2380e19b5f0de90b6b6329ce3de53 (patch)
tree7ecac453c4c6855edd1a8f207b6fcdca331c18a9 /package/opencv3/opencv3.mk
parentbdadcf593d5308fcc1c8e767b7c2af8ae5aa9144 (diff)
downloadbuildroot-86666f3a21a2380e19b5f0de90b6b6329ce3de53.tar.gz
buildroot-86666f3a21a2380e19b5f0de90b6b6329ce3de53.tar.bz2
package/opencv3: fix build for x86_64 target
This change backports a fix from upstream fixing missing symbols due to wrong compiler optimization flags. On Buildroot side, also remove deprecated options passed on the configure command. Fixes: http://autobuild.buildroot.net/results/af950c6172a578c4eeeb9440b6990ceb48263fa6/ http://autobuild.buildroot.net/results/e8832302cd4f30cec076f67965f6aacbaca5b955/ Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/opencv3/opencv3.mk')
-rw-r--r--package/opencv3/opencv3.mk16
1 files changed, 1 insertions, 15 deletions
diff --git a/package/opencv3/opencv3.mk b/package/opencv3/opencv3.mk
index 2e50ba244e..153fd066a1 100644
--- a/package/opencv3/opencv3.mk
+++ b/package/opencv3/opencv3.mk
@@ -97,22 +97,8 @@ OPENCV3_CONF_OPTS += \
#
# * PowerPC support is turned off since its only effect is altering CFLAGS,
# adding '-mcpu=G3 -mtune=G5' to them, which is already handled by Buildroot.
-# * fma3 and popcnt support is disabled because according to gcc manual [2], it
-# is only available on x86_64 haswell, broadwell and knl architecture.
-#
-# [2] https://gcc.gnu.org/onlinedocs/gcc-5.1.0/gcc/x86-Options.html#x86-Options
OPENCV3_CONF_OPTS += \
- -DENABLE_AVX=$(if $(BR2_X86_CPU_HAS_AVX),ON,OFF) \
- -DENABLE_AVX2=$(if $(BR2_X86_CPU_HAS_AVX2),ON,OFF) \
- -DENABLE_FMA3=OFF \
- -DENABLE_POPCNT=OFF \
- -DENABLE_POWERPC=OFF \
- -DENABLE_SSE=$(if $(BR2_X86_CPU_HAS_SSE),ON,OFF) \
- -DENABLE_SSE2=$(if $(BR2_X86_CPU_HAS_SSE2),ON,OFF) \
- -DENABLE_SSE3=$(if $(BR2_X86_CPU_HAS_SSE3),ON,OFF) \
- -DENABLE_SSE41=$(if $(BR2_X86_CPU_HAS_SSE4),ON,OFF) \
- -DENABLE_SSE42=$(if $(BR2_X86_CPU_HAS_SSE42),ON,OFF) \
- -DENABLE_SSSE3=$(if $(BR2_X86_CPU_HAS_SSSE3),ON,OFF)
+ -DENABLE_POWERPC=OFF
# Cuda stuff
OPENCV3_CONF_OPTS += \