diff --git a/srcpkgs/atf/template b/srcpkgs/atf/template
index 7b8d65d1a5..6d5da34243 100644
--- a/srcpkgs/atf/template
+++ b/srcpkgs/atf/template
@@ -14,12 +14,12 @@ distfiles="https://kyua.googlecode.com/files/atf-$version.tar.gz"
 checksum=4458bc6d1ebbbaffd86cd71a426760ff4083eca87f388d9498cd1972ecf258cc
 
 if [ -n "$XBPS_CROSS_TRIPLET" ]; then
+	hostmakedepends="libtool automake"
 	configure_args="kyua_cv_attribute_noreturn=yes
 			kyua_cv_getcwd_works=yes
 			kyua_cv_getopt_optreset=no
 			kyua_cv_getopt_plus=yes
 			kyua_cv_signal_lastno=31"
-	makedepends="automake"
 	pre_configure() {
 		autoreconf -fi
 	}