On Mon, Aug 13, 2007 at 00:31:35 +0100, Neil Williams wrote: > On Mon, 13 Aug 2007 00:57:04 +0200 > Julien Cristau <[EMAIL PROTECTED]> wrote: > > > On Sun, Aug 12, 2007 at 23:21:05 +0100, Neil Williams wrote: > > > > > I'm not sure why you thought this would work because the debdiff > > > contained no changes that would have resulted in the src/utils/Makefile > > > using gcc in place of arm-linux-gnu-gcc because the critical variables > > > are defined BEFORE CC_FOR_BUILD is even specified. THAT is why I had to > > > use override. > > > > > What variables? > > makekeys_LINK, LINK and COMPILE. > I suppose it should be possible to redefine those to use $(CC_FOR_BUILD) instead of $(CC) in Makefile.am... I was hoping it would be possible to avoid that. Or maybe just add a rule like: makekeys: makekeys.c $(CC_FOR_BUILD) $(makekeys_CFLAGS) $< -o $@ so nothing uses $(CC).
> > src/utils/Makefile.in has 'CC = @CC_FOR_BUILD@', which > > becomes 'CC = gcc' in src/utils/Makefile. > > But src/utils/Makefile does not exist. > It is obj-x86_64-linux-gnu/src/utils/Makefile > or obj-$(DEB_BUILD_GNU_TYPE)/src/utils/Makefile > (from debian/rules) > Yeah, that's what I meant. > > I don't believe the only way to build makekeys with a native compiler is > > using a gnu makeism. > > I only wish that such a method would actually work. > > > > What are you using to build at your end? What is it that makes you > > > think that this can be solved without 'override' ? > > > > > I installed the libc6-dev-arm-cross and gcc-4.1-arm-linux-gnu from the > > emdebian repo, symlinked /usr/include/X11 from > > /usr/arm-linux-gnu/include/ (hopefully any differences here don't > > matter), and ran dpkg-buildpackage -rfakeroot -B -aarm. > > Of course the package doesn't build because I don't have some of the > > necessary stuff, but it gets further than the makekeys stuff. > > So you don't have dpkg-cross installed? > No. Cheers, Julien
signature.asc
Description: Digital signature