This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Finished doing x compiles on intel macbook for 2.4 kernel stuff. Some minor edits to macosx section in howto. look for ======== To build gcc and glibc on Mac OS X, you'll need to install a few gnu utilities: gnu wget gnu awk gnu sed gnu install (part of gnu coreutils) such that they are used instead of the native versions. (This may involve setting PATH and/or making symbolic links.) ============ For Darwin ports the following symbolic links are needed in /opt/local/bin ln -s gcp cp ln -s gnused sed ln -s ginstall install ln -s gawk awk ============ The way I installed them was using fink, but DarwinPorts or installing from tarballs ============= works as well. ============= One recurring problem is that various Gnu configure scripts assume that 'as' and 'ld' are the Gnu versions, run them with -v to get the version number, and compare it with some gnu version. That doesn't work well on the Mac. You can either hack the configure scripts to not do that, or write wrapper scripts for as and ld. For instance, here's a wrapper script for as that blatantly lies about what version it is, just to make crosstool happy: =========== For Darwin Ports this is best placed in a file in /opt/local/bin and named as =========== test "$1" = -v && echo GNU assembler 2.13 || /usr/bin/as "$@" =========== For Darwin Ports this is best placed in a file in /opt/local/bin and named ld #!/bin/bash if [ "${1}" == '-v' -o "${1}" == "--version" ] ; then echo "GNU ld 2.13" ; else /usr/bin/ld $@ ; fi =========== Nikolaus Schaller tied all the above into a tidy script; see his build.sh which both downloads the needed tools and creates the wrappers for as and ld. =========== __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |