summaryrefslogtreecommitdiffstats
path: root/src/flann.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-11-09 08:20:16 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-11-09 08:20:16 (GMT)
commitbda4999865552357b26d55b16114343744d61cb5 (patch)
tree373161234d8be792d6a7bacaec4bc8b7e8fa4ffb /src/flann.mk
parent93d0d4d1f48333312e46c4d40fd88a8a89ecd6a8 (diff)
downloadmxe-bda4999865552357b26d55b16114343744d61cb5.zip
mxe-bda4999865552357b26d55b16114343744d61cb5.tar.gz
mxe-bda4999865552357b26d55b16114343744d61cb5.tar.bz2
package flann: fix for too many sections error
Diffstat (limited to 'src/flann.mk')
-rw-r--r--src/flann.mk5
1 files changed, 4 insertions, 1 deletions
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 \