From: Daniel Jacobowitz <drow@mvista.com>
To: Peter Barada <peter@baradas.org>
Cc: dank@kegel.com, zack@codesourcery.com, pinskia@physics.uc.edu,
wilson@tuliptree.org, gcc@gcc.gnu.org
Subject: Re: cross-compilation documentation
Date: Mon, 23 Jun 2003 13:01:00 -0000 [thread overview]
Message-ID: <20030623042231.GA19910@nevyn.them.org> (raw)
In-Reply-To: <20030623025952.CE49398DFD@baradas.org>
On Sun, Jun 22, 2003 at 10:59:52PM -0400, Peter Barada wrote:
>
> >Well, sure! My script at http://kegel.com/crosstool does this:
> >1) configure glibc and do 'make install-headers'; a wee bit of hackery
> > circumvents its urge to build everything
> >2) build and install bootstrap compiler
> >3) build and install real glibc
> >4) build and install real gcc
> >
> >My step #1 isn't pretty, but it only takes a couple minutes, and I'm
> >sure it's faster than what you described. I thought you knew about
> >that already...
>
> Yes I did. I use the following Makefile fragment to get the headers:
>
> glibc1: ${GLIBC_BUILDDIR1} glibc1-fix
> export PATH=${INSTALL_DIR}/bin:${HOST_INSTALL_DIR}/bin:$$PATH; \
> cd ${GLIBC_BUILDDIR1}; \
> CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib \
> ${GLIBC_SOURCE_PATH}/configure --host=${TARGET} \
> --prefix=/usr --without-cvs --disable-sanity-checks \
> --with-headers=${INSTALL_DIR}/${TARGET}/include ; \
> make cross-compiling=yes install_root=${INSTALL_DIR}/${TARGET} prefix="" install-headers
>
> glibc1-fix:
> mkdir -p ${INSTALL_DIR}/${TARGET}/include/gnu ; \
> touch ${INSTALL_DIR}/${TARGET}/include/gnu/stubs.h ; \
> cp -f ${GLIBC_SOURCE_PATH}/include/features.h ${INSTALL_DIR}/include/features.h
>
>
> But this fragment *requires* a cross-compiler to build it. I'm sure I
Not really. I do it with a sufficiently new native compiler to run
configure. Configure determines $target by the command line arguments,
not by querying the $CC you specify.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-06-23 4:22 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-18 0:36 Dan Kegel
2003-06-18 14:58 ` Joel Sherrill
2003-06-22 17:10 ` Dan Kegel
2003-06-19 0:00 ` Jim Wilson
2003-06-22 17:12 ` Dan Kegel
2003-06-22 17:19 ` Andrew Pinski
2003-06-22 17:21 ` Dan Kegel
2003-06-22 17:35 ` Peter Barada
2003-06-22 17:50 ` Andrew Pinski
2003-06-22 17:56 ` Jan-Benedict Glaw
2003-06-22 18:07 ` Zack Weinberg
2003-06-22 20:15 ` Dan Kegel
2003-06-22 20:27 ` Zack Weinberg
2003-06-22 20:36 ` Peter Barada
2003-06-22 21:10 ` Daniel Jacobowitz
2003-06-23 3:06 ` Dan Kegel
2003-06-23 4:08 ` Jan-Benedict Glaw
2003-06-23 4:22 ` Dan Kegel
2003-06-23 9:10 ` Peter Barada
2003-06-23 12:20 ` Dan Kegel
2003-06-23 12:15 ` Peter Barada
2003-06-23 12:20 ` Dan Kegel
2003-06-23 14:14 ` Peter Barada
2003-06-23 15:38 ` Hans-Peter Nilsson
2003-06-23 16:04 ` Dan Kegel
2003-06-23 16:11 ` Hans-Peter Nilsson
2003-06-23 15:57 ` Dan Kegel
2003-06-23 13:01 ` Daniel Jacobowitz [this message]
2003-06-23 14:14 ` Peter Barada
2003-06-23 14:50 ` Daniel Jacobowitz
2003-06-23 14:10 ` Daniel Jacobowitz
2003-06-22 18:41 ` Daniel Jacobowitz
2003-06-22 17:30 ` Jan-Benedict Glaw
-- strict thread matches above, loose matches on Subject: below --
2004-05-29 6:25 Dan Kegel
2004-05-29 6:57 ` Zack Weinberg
2004-06-01 16:35 ` Dan Kegel
2004-06-01 17:38 ` Dave Korn
2004-06-01 17:45 ` Peter Barada
2003-06-22 17:43 Dara Hazeghi
2003-06-22 17:49 ` Jan-Benedict Glaw
2003-06-22 17:49 ` Andrew Pinski
2003-06-22 17:53 ` Jan-Benedict Glaw
2003-06-24 5:26 ` Jim Wilson
2003-06-22 19:36 ` Dara Hazeghi
2003-06-27 12:13 ` Gerald Pfeifer
2001-11-13 16:21 Cross-compilation documentation Joseph S. Myers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030623042231.GA19910@nevyn.them.org \
--to=drow@mvista.com \
--cc=dank@kegel.com \
--cc=gcc@gcc.gnu.org \
--cc=peter@baradas.org \
--cc=pinskia@physics.uc.edu \
--cc=wilson@tuliptree.org \
--cc=zack@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).