I'm attaching a patch, that applies to attr as well as acl, and allows to
cross-compile attr and acl, by correctly using GNU libtool (building a local
copy of it) rather than abusing the system one (that might not be suited for
the crosscompile target).
Basically, the search for libtool is demanded to AC_PROG_LIBTOOL macro as
needed (that requires top_builddir being expanded), and AC_PROG_CC has to be
called (or the wrong compiler would be used and libtool would bail out on
itself at final link).
For acl there's also an extra patch, that removes the use
of /usr/lib/libattr.la if found, this because /usr/lib/libattr.la might not
be compiled for the platform you're building for; just leave -lattr to
libtool to expand to the correct .la file (unless building inline in the same
directory).
With these patches applied, crosscompiling acl and attr is a piece of cacke.
HTH,
--
Diego "Flameeyes" Pettenò - http://farragut.flameeyes.is-a-geek.org/
Gentoo/Alt lead, Gentoo/FreeBSD, Video, Sound, ALSA, PAM, KDE, CJK, Ruby ...
attr-2.4.32-libtool.patch
Description: Text Data
acl-2.2.34-leave-las-to-libtool.patch
Description: Text Data
pgp76Q22hR26l.pgp
Description: PGP signature
|