[Solved] ld ignores additional pathes
LD_LIBRARY_PATH is the path where the dynamic loader (ld.so and ld-linux.so on Linux, dyld on OS X) looks up libraries. You need this when you run programs that depend on libraries in non-standard paths. It doesn’t necessarily influence where the linker finds libraries. Use the -L flag to specify the search path for ld: ld … Read more