From bda4999865552357b26d55b16114343744d61cb5 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Sat, 9 Nov 2013 19:20:16 +1100 Subject: package flann: fix for too many sections error --- src/flann.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/flann.mk b/src/flann.mk index fbf17cc..c4e62fb 100644 --- a/src/flann.mk +++ b/src/flann.mk @@ -18,7 +18,10 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - cd '$(1)' && cmake . \ + # workaround for strange "too many sections" error + # setting CXXFLAGS='-O3' seems to fix it + # similar to http://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg06329.html + cd '$(1)' && CXXFLAGS='-O3' cmake . \ -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_CUDA_LIB=OFF \ -- cgit v0.12