qextserialport: fix static build
authorArnout Vandecappelle <arnout@mind.be>
Sun, 20 Nov 2016 22:13:29 +0000 (23:13 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 21 Nov 2016 21:48:09 +0000 (22:48 +0100)
commitf09b33a0abe964a137041f52afb111d351c9e5ff
tree048235cccc35a0f4bf3011c2728bd46c6f8022fd
parent8ad8e9917fd1ea37a4866ef00ce42fd029a72bae
qextserialport: fix static build

By default, qextserialport will attempt to build a shared library.
qesp_static has to be set in CONFIG to build static. Note that
static+shared is not supported, in that case we just build shared.

The install target commands also have to be gated in that case,
because the *.so files don't exist. For completeness we both set
QEXTSERIALPORT_INSTALL_STAGING to NO and don't define
QEXTSERIALPORT_INSTALL_TARGET_CMDS for static builds, although one
of them would be sufficient.

Fixes:
http://autobuild.buildroot.net/results/c9233ad71fd60d0e6a85731a8bd4e598bd84947a

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qextserialport/qextserialport.mk