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?  src/utils/Makefile.in has 'CC = @CC_FOR_BUILD@', which
becomes 'CC = gcc' in src/utils/Makefile.
I don't believe the only way to build makekeys with a native compiler is
using a gnu makeism.

> 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.

The log has:
/bin/sh ../../../libtool --tag=CC   --mode=link arm-linux-gnu-gcc 
-I../../../../include -I../../../../include/X11 -I../../../include 
-I../../../include/X11 -I../../../../src/xcms -I../../../../src/xkb 
-I../../../../src/xlibi18n -I../../../../src -Wall -Wpointer-arith 
-Wstrict-prototypes         -Wmissing-prototypes -Wmissing-declarations     
-Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN 
-DHAS_STICKY_DIR_BIT          -D_BSD_SOURCE -DMALLOC_0_RETURNS_NULL -Wall -g 
-O2   -o libxomGeneric.la  omDefault.lo omGeneric.lo omImText.lo omText.lo 
omTextEsc.lo omTextExt.lo omTextPer.lo omXChar.lo  -ldl 
arm-linux-gnu-ar cru .libs/libxomGeneric.a .libs/omDefault.o .libs/omGeneric.o 
.libs/omImText.o .libs/omText.o .libs/omTextEsc.o .libs/omTextExt.o 
.libs/omTextPer.o .libs/omXChar.o
arm-linux-gnu-ranlib .libs/libxomGeneric.a
creating libxomGeneric.la
(cd .libs && rm -f libxomGeneric.la && ln -s ../libxomGeneric.la 
libxomGeneric.la)
make[4]: Leaving directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/modules/om/generic'
make[4]: Entering directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/modules/om'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/modules/om'
make[3]: Leaving directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/modules/om'
make[3]: Entering directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/modules'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/modules'
make[2]: Leaving directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/modules'
Making all in src
make[2]: Entering directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/src'
cd util && /usr/bin/make
make[3]: Entering directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/src/util'
gcc -DHAVE_CONFIG_H -I. -I../../src -I../../include/X11 -I../../../src/util    
-Wall -Wpointer-arith -Wstrict-prototypes        -Wmissing-prototypes 
-Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE 
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT        -Wall -g -O2 -MT makekeys-makekeys.o 
-MD -MP -MF .deps/makekeys-makekeys.Tpo -c -o makekeys-makekeys.o `test -f 
'makekeys.c' || echo '../../../src/util/'`makekeys.c
mv -f .deps/makekeys-makekeys.Tpo .deps/makekeys-makekeys.Po
/bin/sh ../../libtool --tag=CC   --mode=link gcc -Wall -Wpointer-arith 
-Wstrict-prototypes      -Wmissing-prototypes -Wmissing-declarations     
-Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN 
-DHAS_STICKY_DIR_BIT        -Wall -g -O2   -o makekeys makekeys-makekeys.o  
-ldl 
mkdir .libs
gcc -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE 
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -Wall -g -O2 -o makekeys makekeys-makekeys.o  
-ldl  
make[3]: Leaving directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/src/util'
../src/util/makekeys < /usr/include/X11/keysymdef.h > ks_tables_h
mv ks_tables_h ks_tables.h
/usr/bin/make  all-recursive
make[3]: Entering directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/src'
Making all in util
make[4]: Entering directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/src/util'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory 
`/home/julien/src/xsf/git/lib/libx11/obj-i486-linux-gnu/src/util'

Cheers,
Julien


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to