Buildroot fork.
Go to file
Romain Naour 0c469478f6 package/flann: fix build with cmake >= 3.11
CMake < 3.11 doesn't support add_library() without any source file
(i.e add_library(foo SHARED)). But flann CMake use a trick that use
an empty string "" as source list (i.e add_library(foo SHARED "")).
This look like a bug in CMake < 3.11.

With CMake >= 3.11, the new behaviour of add_library() break the
existing flann CMake code.

>From CMake Changelog [1]:
"add_library() and add_executable() commands can now be called without
 any sources and will not complain as long as sources are added later
 via the target_sources() command."

Note: flann CMake code doesn't use target_sources() since no source file
are provided intentionally since the flann shared library is created by
linking with the flann_cpp_s static library with this line:

target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive)

If you try to use "add_library(flann_cpp SHARED ${CPP_SOURCES})" (as it should
be normally done), the link fail due to already defined symbol.

They are building the shared version using the static library "to speedup the
build time" [3]

This issue is already reported upstream [2] with a proposed solution.

Fixes:
http://autobuild.buildroot.net/results/b2f/b2febfaf8c44ce477b3e4a5b9b976fd25e8d7454

[1] https://cmake.org/cmake/help/v3.11/release/3.11.html
[2] https://github.com/mariusmuja/flann/issues/369
[3] 0fd62b43be

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Davide Viti <zinosat@tiscali.it>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-04-27 22:46:23 +02:00
arch arch: drop BR2_BINFMT_FLAT_SEP_DATA support 2018-04-15 22:04:09 +02:00
board configs/gdb_bfin_bf512: remove defconfig 2018-04-15 22:03:20 +02:00
boot boot/uboot: default to kconfig buildsystem for latest version 2018-04-25 21:35:35 +02:00
configs configs/solidrun_macchiatobin_*: use a Git commit for ATF 2018-04-25 21:28:47 +02:00
docs docs/website: update for 2017.02.11 2018-04-12 18:42:04 +02:00
fs fs/squashfs: add zstd support 2018-04-25 23:39:04 +02:00
linux linux: bump default to version 4.16.5 2018-04-27 18:21:52 +02:00
package package/flann: fix build with cmake >= 3.11 2018-04-27 22:46:23 +02:00
support support/testing: fix Marvell ATF source code 2018-04-25 21:28:47 +02:00
system system/Config.in: re-wrap help text 2018-04-01 08:01:05 +02:00
toolchain toolchain-external-custom: allow specifying relative path to binaries 2018-04-19 23:04:44 +02:00
utils scanpypi: add support for the new PyPI infrastructure 2018-04-18 17:11:47 +02:00
.defconfig arch: remove support for sh64 2016-09-08 22:15:15 +02:00
.flake8 .flake8: ignore utils/diffconfig 2018-03-13 22:37:54 +01:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
.gitlab-ci.yml support/testing: add test for syslog-ng 2018-04-19 23:16:15 +02:00
.gitlab-ci.yml.in .gitlab-ci.yml: extend check-package test to Config.* files 2018-04-01 10:16:35 +02:00
CHANGES Update for 2017.02.11 2018-04-12 18:37:41 +02:00
Config.in Config.in: fix check-package warning 2018-04-17 14:54:45 +02:00
Config.in.legacy legacy: remove options made legacy 5 years ago 2018-04-16 16:21:14 +02:00
COPYING COPYING: add exception about patch licensing 2016-02-26 19:50:13 +01:00
DEVELOPERS package/tk: new package 2018-04-20 10:56:19 +02:00
Makefile arch: remove Blackfin architecture 2018-04-15 22:03:41 +02:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
README README: add reference to submitting-patches 2016-02-01 19:16:08 +01:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches