From 2a1119faa071d474c85a3e1ae0ee04b8040bd5ff Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 29 Oct 2021 23:30:40 +0200 Subject: libcap: Fix build Have to pass HOST_CC variable so _makenames helper is correctly compiled for host arch. Also PAM detection checks host's headers, override this based on package choice. Signed-off-by: Phil Sutter --- package/libcap/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/libcap') diff --git a/package/libcap/Makefile b/package/libcap/Makefile index d509e1960..29c417237 100644 --- a/package/libcap/Makefile +++ b/package/libcap/Makefile @@ -25,6 +25,10 @@ endif HOST_STYLE:= manual CONFIG_STYLE:= manual +MAKE_ENV+= BUILD_CC="${HOST_CC}" +ifeq ($(ADK_PACKAGE_PAM),) +MAKE_ENV+= PAM_CAP=no +endif host-build: (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \ -- cgit v1.2.3