From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 58F4BBBAF for ; Sun, 25 May 2008 09:53:17 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuAFAPa3OEjAXQImiGdsb2JhbACCODWKHYUtAQEBDyCZMQ X-IronPort-AV: E=Sophos;i="4.27,537,1204498800"; d="sig'?scan'208,217";a="26580595" Received: from discorde.inria.fr ([192.93.2.38]) by mail4-smtp-sop.national.inria.fr with ESMTP; 25 May 2008 09:53:16 +0200 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m4P7rGOE014761 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 25 May 2008 09:53:16 +0200 X-IronPort-AV: E=Sophos;i="4.27,537,1204498800"; d="sig'?scan'208,217";a="12673512" Received: from unknown (HELO [192.168.1.140]) ([78.13.65.247]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 25 May 2008 09:53:15 +0200 Message-Id: From: Alan Schmitt To: caml-list@inria.fr In-Reply-To: Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-80--680922673" Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: [Caml-list] Re: Building a universal binary on OS X? Date: Sun, 25 May 2008 09:53:14 +0200 References: <46105D6E-BE5B-4473-B24A-75B0F86C4EC2@polytechnique.org> X-Pgp-Agent: GPGMail d51 (Leopard) Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.919.2) X-Miltered: at discorde with ID 48391AEC.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; schmitt:01 schmitt:01 schinz:01 gmane:01 gmane:01 ocaml:01 ocaml:01 libunix:01 ocamlopt:01 schinz:01 libunix:01 ocamlopt:01 wrote:01 wrote:01 compile:01 X-Attachments: type="application/pgp-signature" name="PGP.sig" name="PGP.sig" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-80--680922673 Content-Type: multipart/alternative; boundary=Apple-Mail-79--680922781 --Apple-Mail-79--680922781 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 24 mai 08, at 09:31, Michel Schinz wrote: >> 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. Ah, thank you, this seems to be it. Just one small additional question about this: where should I put the supporting libraries (the ocaml directory with libunix.a for instance), and how can I make sure the ppc version of ocamlopt find these libraries, and not the i386 ones? Thanks again, Alan --Apple-Mail-79--680922781 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On 24 mai 08, at = 09:31, Michel Schinz wrote:

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.

Ah, thank you, this seems to = be it. Just one small additional question about this: where should I put = the supporting libraries (the ocaml directory with libunix.a for = instance), and how can I make sure the ppc version of ocamlopt find = these libraries, and not the i386 ones?

Thanks = again,

Alan
= --Apple-Mail-79--680922781-- --Apple-Mail-80--680922673 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFIORrqNIAqM4hFUWgRApqVAJ9HNnIifwCgVpIQmRhWULVY6IuZqgCdHgwI 8DrIZpx5Cho4iNV4O1+hRsc= =Oo/q -----END PGP SIGNATURE----- --Apple-Mail-80--680922673--