-run linker search paths differ from clang linker #451

galchinsky opened this Issue Nov 26, 2012 · 4 comments

2 participants



external curl_easy_init(): OpaquePointer;
main() {
  • clay main.clay -lcurl works
  • clay main.clay -lcurl -run don't: clay: error: Cannot find library 'curl.so'
  • clay main.clay -run -L/usr/lib/x86_64-linux-gnu -lcurl works

-run linker's search paths are


Cannot reproduce this issue on Archlinux or OSX with llvm-3.2 & clay/master.


It could have been fixed at the LLVM level in 3.2.


llvm-3.2 & clay/master:
Now even $ clay test.clay -run -L/usr/lib/x86_64-linux-gnu -lcurl doesn't work: Couldn't load shared library curl

$ clay test.clay -run -L/usr/lib/x86_64-linux-gnu -lcurl.so : works. runLibraries in clay.cpp hasn't been properly coded yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment