On Sun, 30 Sep 2007 17:53:29 +0100 Mark Brown <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 30, 2007 at 03:56:00PM +0100, Neil Williams wrote: > > > The top level 'make' command tries to use gcc instead of > > $(DEB_HOST_GNU_TYPE)-gcc and the LDSHARED value also sets 'gcc' instead > > of $(DEB_HOST_GNU_TYPE)-gcc. Similarly, the install targets try to use > > gcc. Finally, 'make test' or 'make check' cannot operate in a > > You really need to do this via the configure script or similarly. It doesn't work via configure. The very first thing I tried was ./configure --build --host etc. That is always the first thing I try - it is the standard way of working with cross-building. gcc is still run for the top level make file because the Makefile doesn't use a variable for setting CC, it sets it directly and will thereby only accept an override via MAKEFLAGS which needs to be set via debian/rules (or otherwise in the environment but debian/rules is the most sensible way of doing that). > In > particular, you need to ensure that off64_t is detected properly since > that has an effect on the ABI of the resulting library and it will > probably fail to build in some combinations. > > > cross-building environment. The current build does ignore that error but > > I've wrapped the call to 'make test' in the attached patch for clarity. > > Please submit separate patches for separate issues. ? make test failing is the same issue - it relates only to cross-builds ? One issue, one patch. > > The patch has no effect if $(DEB_HOST_GNU_TYPE) matches the value of > > $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) so I hope you will be > > able to apply it and help Emdebian cross-build zlib more easily. > > I'm not enthusiatic about applying the patch as is due to the bypassing > of the configuration script. If the configuration script worked, I wouldn't need the patch. :-( -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
pgpC5GwdOW0OJ.pgp
Description: PGP signature

