title: Linker cannot find library file with explicit path
body: <p>In my makefile, I have specified a library dependency as follows:</p>
  
  <pre><code>LDFLAGS := -l/home/karnivaurus/OpenCV-3.0.0/build/lib/libopencv_core.so
  
  all: $(DYNAMIC_NAME)
  
  $(DYNAMIC_NAME): $(OBJS) | $(LIB_BUILD_DIR)
      @ echo LD -o $@
      $(Q)$(CXX) -shared -o $@ $(OBJS) $(LINKFLAGS) $(LDFLAGS) $(DYNAMIC_FLAGS)
  </code></pre>
  
  <p>Now, if I run <code>make all</code>, I get the following error:</p>
  
  <pre><code>/usr/bin/ld: cannot find -l/home/karnivaurus/Libraries/OpenCV-3.0.0-RC1/build/lib/libopencv_core.so
  </code></pre>
  
  <p>However, in the directory <code>/home/karnivaurus/Libraries/OpenCV-3.0.0-RC1/build/lib</code>, there is definitely a file called <code>libopencv_core.so</code>. I have checked the spelling many times!</p>
  
  <p>Are there any reasons why the linker cannot find this file, even though I have explicitly specified its exact location and passed that to the linker?</p>
  
  <p>Thanks!</p>