There are only two changes required to allow easier cross-compiling.
Add AC_PROG_LIBTOOL to configure.in then correct the
include/builddefs.in file to specify the top directory.

Once those are done, a few tweaks to debian/rules is sufficient.

--- attr-2.4.18/include/builddefs.in    2004-09-15 10:26:20.000000000 +0900
+++ attr-2.4.18/include/builddefs.in    2004-12-03 16:08:17.000000000 +0900
@@ -32,6 +32,8 @@
 # @configure_input@
 #

+top_builddir = @top_builddir@
+
 ifndef _BUILDDEFS_INCLUDED_
 _BUILDDEFS_INCLUDED_ = 1

--- attr.old/configure.in       2007-05-06 18:52:26.000000000 +0100
+++ attr-2.4.32/configure.in    2007-05-06 20:01:35.000000000 +0100
@@ -2,6 +2,8 @@
 AC_CONFIG_HEADER(include/config.h)
 AC_PREFIX_DEFAULT(/usr)

+AC_PROG_LIBTOOL
+
 AC_ARG_ENABLE(shared,
 [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],,
        enable_shared=yes)

It's then probably best to run:
libtoolize
aclocal -I m4
autoconf

within the build so that the distributed tarball contains the updates
from these programs. That will reduce the .diff.gz which is always
handy.

The final build:
http://buildd.emdebian.org/svn/browser/current/target/trunk/a/attr/trunk/attr_1%3A2.4.32-1.1em1_arm.build?rev=1046

patch files:
http://buildd.emdebian.org/svn/browser/current/target/trunk/a/attr/trunk?rev=1046

--


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgptmTINtXsEw.pgp
Description: PGP signature

Reply via email to