package/hiredis: fix install step for static build only
authorRomain Naour <romain.naour@gmail.com>
Fri, 14 Apr 2017 13:02:25 +0000 (15:02 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 14 Apr 2017 20:29:31 +0000 (22:29 +0200)
commit10ffe1f65ce2975eb7fad426c466a5d80e3a82ba
tree61712e49cd966f39b8de450c992af1828418d9cf
parent6dbcaa4d660739763ceccff61c3ab489a9be2b0d
package/hiredis: fix install step for static build only

The previous patch [1] didn't take into acount the static build only
scenario. It tries to unconditionally install a shared library.

Handle the install step like for bzip2 package: install the shared
library only if BR2_SHARED_LIBS or BR2_SHARED_STATIC_LIBS is set and
install the static library only if BR2_STATIC_LIBS or
BR2_SHARED_STATIC_LIBS is set.

[1] 96daacb720cffe1f83259462bef9d3da92925cd9

Fixes:
http://autobuild.buildroot.net/results/6be/6be8024dd664af83fcf49ede29c8ad59a37f73d1

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/hiredis/hiredis.mk