Browse Source

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>
Phil Sutter 3 years ago
parent
commit
2a1119faa0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/libcap/Makefile

+ 4 - 0
package/libcap/Makefile

@@ -25,6 +25,10 @@ endif
 
 
 HOST_STYLE:=		manual
 HOST_STYLE:=		manual
 CONFIG_STYLE:=		manual
 CONFIG_STYLE:=		manual
+MAKE_ENV+=		BUILD_CC="${HOST_CC}"
+ifeq ($(ADK_PACKAGE_PAM),)
+MAKE_ENV+=		PAM_CAP=no
+endif
 
 
 host-build:
 host-build:
 	(cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
 	(cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \