package/libcap: fix libcap.pc
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 1 Dec 2020 19:27:03 +0000 (20:27 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 1 Dec 2020 22:01:27 +0000 (23:01 +0100)
commit07f8ea39139299c83777a338a30cd480633d5706
tree3f783d64b15861d7a35d1bc8a70c9d494ea85b2c
parentc773336463bc605e2e5ceb8288937b7aacb26d04
package/libcap: fix libcap.pc

libcap builds an incorrect libcap.pc because libdir is pulled from the
host os:

ifndef lib
lib=$(shell ldd /usr/bin/ld|egrep "ld-linux|ld.so"|cut -d/ -f2)
endif

Fix this error by passing lib=lib and prefix in
{HOST_LIBCAP,LIBCAP}_BUILD_CMDS

Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=13276

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libcap/libcap.mk