boost: detect missing selects
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 7 Jul 2018 12:49:40 +0000 (14:49 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 10 Jul 2018 21:04:56 +0000 (23:04 +0200)
commit5230ecfde7fea60f3938e2a3daca56a4d79f83d8
tree75eafc9104d3ae80d5cc2d13622972adc3308ee8
parent2664022787eb396125b5696a2d42c460ef54d359
boost: detect missing selects

As suggested by Arnout during the review of
http://patchwork.ozlabs.org/patch/934589, add a mechanism to detect a
missing boost select by checking that we do not install a boost library
which hasn't been selected by the user.

To manage a change of boost configuration by the user between two
builds, add a BOOST_PRE_INSTALL_TARGET_HOOKS to remove all boost
libraries before installing them.

Also, use ls with a wildcard instead of test to avoid trying to guess
library names if boost layout is set to tagged or versionned (the
wildcard will also help us to manage shared or static library)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/boost/boost.mk