acl: add host variant
authorArnout Vandecappelle <arnout@mind.be>
Fri, 17 Mar 2017 16:06:15 +0000 (17:06 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 18 Mar 2017 13:09:42 +0000 (14:09 +0100)
We need host-acl to fix issues with fakeroot.

Unfortunately, all the hacks (except the .la fixup) have to be repeated.

Cc: Yegor Yefremov <yegorslists@googlemail.com>
Cc: Andreas Naumann <dev@andin.de>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/acl/acl.mk

index 9fd5de18a458946f989801d8bd913f013b230192..e1462b60aa295742c627ae396addb5c39daa7f38 100644 (file)
@@ -43,4 +43,15 @@ endef
 
 ACL_POST_INSTALL_STAGING_HOOKS += ACL_FIX_LIBTOOL_LA_LIBDIR
 
+HOST_ACL_DEPENDENCIES = host-attr
+HOST_ACL_CONF_OPTS = --enable-gettext=no
+HOST_ACL_MAKE_ENV = CFLAGS="$(HOST_CFLAGS)"
+HOST_ACL_INSTALL_OPTS = \
+       prefix=$(HOST_DIR)/usr \
+       exec_prefix=$(HOST_DIR)/usr \
+       PKG_DEVLIB_DIR=$(HOST_DIR)/usr/lib \
+       install-dev install-lib
+# For the host, libacl.la is correct, no fixup needed.
+
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))