flann: disallow static library build
PATCH 1/1 flann: disallow static library build
Even though flann build system uses CMake, it always tries to build a shared library, even if BUILD_SHARED_LIBS=OFF is passed. It could probably be fixed in flann's CMakeLists.txt, but that's not really worth the effort if upstream doesn't support it.
Therefore, we simply disallow the flann package in purely static builds.
Fixes:
http://autobuild.buildroot.org/results/a4e/a4ec0e9f28cd12ce770718fb407bbb4dc93b528b/
--- package/flann/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/flann/Config.in +3 -2
@@ -1,6 +1,7 @@ config BR2_PACKAGE_FLANN bool "flann" depends on BR2_INSTALL_LIBSTDCPP + depends on !BR2_PREFER_STATIC_LIB help FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces. It contains a
@@ -20,5 +21,5 @@ config BR2_PACKAGE_FLANN_EXAMPLES endif -comment "flann needs a toolchain w/ C++" - depends on !BR2_INSTALL_LIBSTDCPP +comment "flann needs a toolchain w/ C++, dynamic library" + depends on !BR2_INSTALL_LIBSTDCPP || BR2_PREFER_STATIC_LIB
Signature · 1 line
1.9.2
PATCH 1/1 flann: disallow static library build
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Even though flann build system uses CMake, it always tries to build a shared library, even if BUILD_SHARED_LIBS=OFF is passed. It could probably be fixed in flann's CMakeLists.txt, but that's not really worth the effort if upstream doesn't support it.
Quoted 8 lines
Therefore, we simply disallow the flann package in purely static builds.
Fixes:
http://autobuild.buildroot.org/results/a4e/a4ec0e9f28cd12ce770718fb407bbb4dc93b528b/
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard