Browse thread
[Caml-list] mutually referencing compilation units
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Lex Stein <stein@e...> |
| Subject: | [Caml-list] ocamlmktop linking on Darwin |
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