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.4 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id A4082BC0B for ; Tue, 30 Jan 2007 19:41:03 +0100 (CET) Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [213.186.38.137]) by concorde.inria.fr (8.13.6/8.13.6) with SMTP id l0UIf3q3017171 for ; Tue, 30 Jan 2007 19:41:03 +0100 Received: (qmail 7832 invoked by uid 503); 30 Jan 2007 18:42:53 -0000 Received: from b6.ovh.net (HELO mail170.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 30 Jan 2007 18:42:53 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 30 Jan 2007 18:41:08 -0000 Received: from vil93-4-82-227-140-227.fbx.proxad.net (HELO ?192.168.1.111?) (lists%philippewang.info@82.227.140.227) by ns0.ovh.net with SMTP; 30 Jan 2007 18:41:06 -0000 Message-ID: <45BF9114.3070505@philippewang.info> Date: Tue, 30 Jan 2007 19:40:20 +0100 From: Philippe Wang User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Building OSX Universal Binaries References: <45A03E09.3050907@motion-twin.com> <71217FB6-B868-40DA-9019-230D9EEA7FEB@epfl.ch> <13C8AAD6-95A2-4080-A7C2-A318D52E66F8@philippewang.info> <192C8DEF-B471-443B-A6CA-E2CC0759637B@mac.com> In-Reply-To: <192C8DEF-B471-443B-A6CA-E2CC0759637B@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Remote: 82.227.140.227 (vil93-4-82-227-140-227.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Miltered: at concorde with ID 45BF913F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; osx:01 woodyatt:01 ocamlopt:01 gcc:01 ocaml:01 ocaml:01 woodyatt:01 jhw:01 gcc:01 ocamlopt:01 2007,:98 48,:98 corey:98 xcode:98 neck:98 James Woodyatt wrote: > On Jan 16, 2007, at 09:48, Corey O'Connor wrote: >> On 1/15/07, Philippe Wang wrote: >>> >>> However, ocamlopt can be configured to produce x86 asm on a PPC, >>> can't it ? >>> And XCode can build universal binaries on both ppc and x86... >>> So I guess you just need to call gcc with the right parameters... >> >> Actually, I have no idea. That'd be great if it did. > > I haven't seen any easy way to configure OCaml as a crosstool. The > trick you would use here is to run the native PPC version of the OCaml > compilers on x86 under Rosetta. I don't know if this works, but I > would expect it to work. Be a pain in the neck, but it should work. > > > --james woodyatt > member of technical staff > apple computer, inc. well, the one more trick to use should be to give the right option to gcc, which is called by ocamlopt...