title: cannot find library with -L/lib/path
body: <p>New to C, and try to make my own first library. However gcc says library not found.
  with -L/lib/path, it should be ok, but it's not.</p>
  
  <p>FYI, i use Mac os x.</p>
  
  <pre><code>~/c$make
  gcc -c -o obj/hellomake.o src/hellomake.c -I./include
  gcc -c -o obj/hellofunc.o src/hellofunc.c -I./include
  gcc -o hellomake obj/hellomake.o obj/hellofunc.o -I./include -L./lib -lm -llibfunc
  ld: library not found for -llibfunc
  collect2: ld returned 1 exit status
  make: *** [hellomake] Error 1
  
  ~/c$ls ./lib
  README.txt libfunc.a  libfunc1.c libfunc1.o libfunc2.c libfunc2.o
  </code></pre>