summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-10-29 23:30:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2021-10-30 17:47:42 +0200
commit2a1119faa071d474c85a3e1ae0ee04b8040bd5ff (patch)
tree756d60f27e7626158025dd617fd4b955e2103111
parent052b2d80e0fe017f0a6eec6673ba04b7f6bd8bf5 (diff)
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 <phil@nwl.cc>
-rw-r--r--package/libcap/Makefile4
1 files changed, 4 insertions, 0 deletions
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} \