From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1EnlOv-0007nO-Mi for garchives@archives.gentoo.org; Sat, 17 Dec 2005 23:23:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jBHNMuO8012836; Sat, 17 Dec 2005 23:22:56 GMT Received: from mail.imagesmiths.com (adsl-216-103-47-182.dsl.lsan03.pacbell.net [216.103.47.182]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jBHNKeEC028547; Sat, 17 Dec 2005 23:20:41 GMT Received: from mail.imagesmiths.com (localhost.localdomain [127.0.0.1]) by mail.imagesmiths.com (8.12.10/8.12.10) with ESMTP id jBHNKX6h024995; Sat, 17 Dec 2005 18:20:33 -0500 Received: (from davelists2@localhost) by mail.imagesmiths.com (8.12.10/8.12.10/Submit) id jBHNKXBm024993; Sat, 17 Dec 2005 18:20:33 -0500 Date: Sat, 17 Dec 2005 18:20:33 -0500 From: David Thomas To: gentoo-dev@lists.gentoo.org, gentoo-embedded@lists.gentoo.org Subject: [gentoo-dev] problems crosscompiling libXt Message-ID: <20051217232033.GA24919@peoplemerge.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Archives-Salt: 717ea550-9e1c-4be8-b958-5d63725bb683 X-Archives-Hash: 3dbcc78dbd939d954109f7259cd582e0 Hey all, Here is a fix for libXt, similar to the problems I had with libX11 last week. I don't see an obvious way to patch the Makefile.am. Please send comments. Symptom: ../util/makestrs -i .. < ../util/string.list > StringDefs.c /bin/sh: ../util/makestrs: cannot execute binary file make[2]: *** [StringDefs.c] Error 126 For this to work, have a look at the ebuild in the forwarded msg. Fix patchfile: --- util/Makefile.in +++ util/Makefile.in @@ -48,7 +48,7 @@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ -CC = @CC@ +CC = gcc CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ On Fri, Dec 09, 2005 at 03:19:28AM -0500, David Thomas (davelists2@peoplemerge.com) wrote: Subject: [gentoo-embedded] problems crosscompiling libX11 Message ID: <20051209081928.GA11683@peoplemerge.com> > I've been having problems with libX11. First it tries to build a binary > with the crosscompiler then execute it: > > /bin/sh: ../src/util/makekeys: cannot execute binary file > > I wrote a patch that fixes this... See below. > > I'm still having a problem with libtool. The last step of the build process > it does the following: > /bin/sh ../libtool --mode=link armv5l-softfloat-linux-uclibc-gcc ... -L /newroot/usr/lib ... > ...(much more)... -lXau -lXdmcp -ldl > > This calls the crosscompiler replacing -lXau and -lXdmcp with /usr/lib/libXau.so and > /usr/lib/libXdmcp.so INSTEAD of the crosscompiled ones in /newroot/usr/lib > > Same thing even if I hardcode values in ../libtool for sys_lib_search_path_spec. > I also tried setting an LDPATH in /etc/env.d/05crosscompiler. > > Am I missing something in /etc/ld.so.conf environment? > > Thanks! > Dave Thomas > > Here are the fixes: > Added to ebuild (is this right? comments? it seems to work): > src_unpack() > { > x-modular_unpack_source > x-modular_patch_source > cd ${S} > epatch /path/to/patchfile > x-modular_reconf_source > } > > patchfile: > --- src/util/Makefile.am > +++ src/util/Makefile.am > @@ -4,7 +4,8 @@ > > makekeys_CFLAGS=$(X11_CFLAGS) $(BIGREQS_CFLAGS) > > -#override CC = gcc > +#do not override CC, this is needed when using a crosscompiler since this executable is to be run on $build not $host > +CC = gcc > LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ > > EXTRA_DIST = mkks.sh > --- src/util/Makefile.in > +++ src/util/Makefile.in > @@ -189,8 +189,9 @@ > > makekeys_CFLAGS = $(X11_CFLAGS) $(BIGREQS_CFLAGS) > > -#override CC = gcc > +#no, do not override CC, this is needed when using a crosscompiler since this executable is to be run on $build not $host > +CC = gcc > LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ > > __END__ > > > > -- > gentoo-embedded@gentoo.org mailing list -- gentoo-dev@gentoo.org mailing list