forhappy / uv-ocaml

Ocaml binding for joyent/libuv[https://github.com/joyent/libuv]
BSD 3-Clause "New" or "Revised" License
15 stars 1 forks source link

linking on examples #11

Open nrlucaroni opened 10 years ago

nrlucaroni commented 10 years ago

libuv uses libtools to build .la files. I have little experience with these types of files. I had success statically linking the hello-world with these additional linking options,

-Wl,--no-as-needed -luv -lpthread -static

apparently libtools should be used to link (see manual below). I'm not sure if the entire library should be linked this way. Any ideas? I'll be look into this over the next few days.

http://www.gnu.org/software/libtool/manual/html_node/Linking-executables.html