package/libcec: fix missing libraries from rpi-userland
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 4 Jun 2014 23:04:10 +0000 (01:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 8 Jun 2014 13:09:58 +0000 (15:09 +0200)
commita19bb4b873a9592b3cc16ad992e473f7d56a0b35
tree09d5ce6a8a0a8c10c6f7da80f26522de66a63c8a
parenta0d0abc16024153f0e1e18166e71a58b4eae08cb
package/libcec: fix missing libraries from rpi-userland

When rpi-userland libraries are built as shared-objects, not all needed
libraries are passed in the LD_FLAGS, leading to failure at linkage.

To avoid this issue, set the LIBS variable content in accordance with
INCLUDES variable value.

This is needed because libcec does not use pkg-config to look for the
ldflags needed for -lbcm_host, even though bcm_host provides a .pc
file (even a correct one!)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Samuel Martin <s.martin49@gmail.com>
Tested-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libcec/libcec.mk