From: Lex Stein <stein@eecs.harvard.edu>
To: caml-list@inria.fr
Subject: [Caml-list] ocamlmktop linking on Darwin
Date: Thu, 19 Sep 2002 01:09:32 -0400 (EDT) [thread overview]
Message-ID: <Pine.BSF.4.44.0209190046020.52840-100000@bowser.eecs.harvard.edu> (raw)
In-Reply-To: <3D893FF0.7070708@ozemail.com.au>
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
prev parent reply other threads:[~2002-09-19 5:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-15 20:15 [Caml-list] mutually referencing compilation units Henri Dubois-Ferriere
2002-09-16 3:44 ` [Caml-list] function polymorphic in number of arguments? Quetzalcoatl Bradley
2002-09-16 12:19 ` Francois Thomasset
2002-09-16 12:24 ` Francois Thomasset
2002-09-17 12:32 ` [Caml-list] mutually referencing compilation units Xavier Leroy
2002-09-19 3:09 ` John Max Skaller
2002-09-19 5:09 ` Lex Stein [this message]
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=Pine.BSF.4.44.0209190046020.52840-100000@bowser.eecs.harvard.edu \
--to=stein@eecs.harvard.edu \
--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