xfs
[Top] [All Lists]

Patch for attr and acl to correctly use libtool while crosscompiling

To: xfs@xxxxxxxxxxx
Subject: Patch for attr and acl to correctly use libtool while crosscompiling
From: "Diego 'Flameeyes' Pettenò" <flameeyes@xxxxxxxxxx>
Date: Wed, 27 Dec 2006 02:12:31 +0100
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:x-face:mime-version:content-type:content-transfer-encoding:message-id:sender; b=L+f2Yj/NZ0Nq/VkxGwJByMrpu7vDuotGyjEtEOmUNwX8zGBPpAOSeZPPaG352JZ3qCTnrmO+HGGhFLs4jgz+1yU1gIZCduO4B7EQE2LdpDrH7bnQkMdXmGDdq7GStEZXtn5CqO0TbqD+lNVbUvXwz+lGpPf0oyvJ47COKxA2bL4=
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.9.5
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 ...

Attachment: attr-2.4.32-libtool.patch
Description: Text Data

Attachment: acl-2.2.34-leave-las-to-libtool.patch
Description: Text Data

Attachment: pgpYkzfMOmIJA.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
  • Patch for attr and acl to correctly use libtool while crosscompiling, Diego 'Flameeyes' Pettenò <=