On Sun, Aug 12, 2007 at 21:45:36 +0100, Neil Williams wrote: > On Sun, 12 Aug 2007 16:59:25 +0200 > Julien Cristau <[EMAIL PROTECTED]> wrote: > > > diff --git a/configure.ac b/configure.ac > > index f49b9ed..3125dc4 100644 > > --- a/configure.ac > > +++ b/configure.ac > > @@ -18,6 +18,12 @@ AC_CONFIG_HEADER([include/X11/XlibConf.h]) > > AC_PROG_LIBTOOL > > AC_PROG_CC > > > > +if test x"$cross_compiling" = xyes; then > > + AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc) > > +else > > + CC_FOR_BUILD="$CC" > > +fi > > + > > CC_FOR_BUILD needs to be substituted so I added: > AC_SUBST(CC_FOR_BUILD) > hmm, i wonder why it worked for me...
> > XORG_PROG_RAWCPP > > > > # Build with XCB support? > > diff --git a/src/util/Makefile.am b/src/util/Makefile.am > > index 3ff421d..c9e81c0 100644 > > --- a/src/util/Makefile.am > > +++ b/src/util/Makefile.am > > @@ -4,8 +4,7 @@ noinst_PROGRAMS=makekeys > > > > makekeys_CFLAGS=$(X11_CFLAGS) > > > > -#override CC = gcc > > -LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ > > +CC = @CC_FOR_BUILD@ > > I could not get that to work. > > A working patch, based on the above, is attached, using the 'override' > command to 'make'. > The override command is gnu make specific, so that's not a good solution. Cheers, Julien
signature.asc
Description: Digital signature