caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andres Varon <avaron@gmail.com>
To: Michel Schinz <Michel.Schinz@epfl.ch>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Re: Building a universal binary on OS X?
Date: Sun, 25 May 2008 07:39:04 -0400	[thread overview]
Message-ID: <4B9FD87A-8152-46F4-9747-418DEC2327F8@gmail.com> (raw)
In-Reply-To: <m2lk20rwcy.fsf@vpn-epfl-b049.epfl.ch>


On May 24, 2008, at 3:31 AM, Michel Schinz wrote:

> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
> [...]
>
>> My goal is to be able to compile the OS GUI version of Unison on a
>> single machine. Right now, using my intel-based notebook, I'm able to
>> compile a version that runs both on 10.4 and 10.5, but only on intel.
>
> [...]
>
>> I think I remember an old message addressing this, but I have not  
>> been
>> able to find it.
>
> You might be referring to this message:
>
> http://thread.gmane.org/gmane.comp.lang.caml.general/38930
>
> The cute trick consists in building a PPC version of OCaml on a PPC
> machine, and then copying it over to your Intel machine. It will run
> fine (albeit slowly) under Rosetta, and generate PPC executables.

Actually you can cross compile it in your intel mac, this is what I  
use to configure it:

./configure -cc "gcc -mmacosx-version-min=10.4 -arch ppc -isysroot / 
Developer/SDKs/MacOSX10.4u.sdk" -prefix /opt/ocaml/3.10.2/tiger/ppc - 
host powerpc-apple-darwin8.11.0

Then use the standard make world; make opt;  ....

Andres

>
>
> Michel.
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


  parent reply	other threads:[~2008-05-25 11:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-19 13:07 Alan Schmitt
2008-05-23  8:41 ` [Caml-list] " Alan Schmitt
2008-05-24  7:31   ` Michel Schinz
2008-05-25  7:53     ` [Caml-list] " Alan Schmitt
2008-05-25 11:39     ` Andres Varon [this message]
2008-05-26  4:43     ` Nathaniel Gray
2008-05-26  5:18       ` Alan Schmitt

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=4B9FD87A-8152-46F4-9747-418DEC2327F8@gmail.com \
    --to=avaron@gmail.com \
    --cc=Michel.Schinz@epfl.ch \
    --cc=caml-list@inria.fr \
    /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 NNTP newsgroup(s).