title: gcc: error: unrecognized command line option '-Wl' in Makfile
body: <p>I run the command "<strong>make test</strong>" in this source code:</p>
  
  <p><a href="https://github.com/sanandrea/CSecretKey" rel="nofollow">https://github.com/sanandrea/CSecretKey</a></p>
  
  <p>but it give me this <strong>error</strong>:</p>
  
  <pre><code>gcc: error: unrecognized command line option '-Wl'
  Makefile:18: recipe for target 'lib_plain' failed
  make: *** [lib_plain] Error 1
  </code></pre>
  
  <p>This is the line 18 in the makefile
      gcc -shared -Wl -o libhmacenc.so hmac_256_plain.o sha2.o -lc</p>
  
  <p>This is the list of the files:</p>
  
  <ul>
  <li>Android.mk</li>
  <li>hmac_sha256.c</li>
  <li>hmac_sha256.h</li>
  <li>reverse_test.py</li>
  <li>sha2.c</li>
  <li>sha2.h</li>
  <li>test.c</li>
  </ul>
  
  <p>This is the complete "makefile":</p>
  
  <pre><code>all: lib test
  test: clean lib_plain
      gcc -o test test.c -lhmacenc -L.
  
  production: clean lib
      gcc -o test test.c -lhmacenc -L.
  
  hmac_256.o: hmac_sha256.c hmac_sha256.h
      $(CC) -Wall -c hmac_sha256.c -o hmac_256.o
  
  hmac_256_plain.o: hmac_sha256.c hmac_sha256.h
      $(CC) -Wall -DSHOW_PASS -c hmac_sha256.c -o hmac_256_plain.o
  
  lib: hmac_256.o sha2.o
      gcc -shared -Wl -o libhmacenc.so hmac_256.o sha2.o -lc
  
  lib_plain: hmac_256_plain.o sha2.o
      gcc -shared -Wl -o libhmacenc.so hmac_256_plain.o sha2.o -lc
  
  sha2.o: sha2.c sha2.h
      $(CC) -c sha2.c -o sha2.o
  
  clean:
      - rm -rf *.o hmac *.so
  </code></pre>
  
  <p>Someone would knows how I can fix this error?</p>
  
  <p>Thanks!</p>