From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA16108; Thu, 19 Sep 2002 07:09:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA16365 for ; Thu, 19 Sep 2002 07:09:34 +0200 (MET DST) Received: from mail.eecs.harvard.edu (bowser.eecs.harvard.edu [140.247.60.24]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8J59X102470 for ; Thu, 19 Sep 2002 07:09:34 +0200 (MET DST) Received: by mail.eecs.harvard.edu (Postfix, from userid 32018) id CFB2F54C659; Thu, 19 Sep 2002 01:09:32 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.eecs.harvard.edu (Postfix) with ESMTP id CDA9654C634 for ; Thu, 19 Sep 2002 01:09:32 -0400 (EDT) Date: Thu, 19 Sep 2002 01:09:32 -0400 (EDT) From: Lex Stein To: caml-list@inria.fr Subject: [Caml-list] ocamlmktop linking on Darwin In-Reply-To: <3D893FF0.7070708@ozemail.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, OSX Darwin's default linker is not GNU ld. Interestingly, and unfortunately, Darwin's ld does not like "L .". Ocamlmktop automatically calls gcc with "L .". Is there any way to tell ocamlmktop to get rid of the space between the `L` and the `.`? "L." works just fine. Here is an example of what happens: ocamlmktop -verbose -o footop -custom unix.cma \ foo.cma -ccopt "-L/usr/local/foo/lib/" + gcc -o 'footop' -I'/usr/local/lib/ocaml' -L/usr/local/foo/lib/ -L . /tmp/camlprim4813cc.c '-L/usr/local/lib/ocaml' '-lcamlfoo' '-ldb' '-lunix' -lcamlrun /usr/bin/ld: -L: directory name missing Error while building custom runtime system make: *** [footop] Error 2 The following simple example illustrates what happens when the `.` is moved away from the `L`: [cstein-4:~/charles] castein% gcc -o foo -L. test.c [cstein-4:~/charles] castein% gcc -o foo -L . test.c /usr/bin/ld: -L: directory name missing I hope that Ocamlmktop can solve this, allowing me to avoid a non-trivial install of GNU binutils. Thanks, Lex ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners