title: undefined reference to `le16toh' error in Makefile
body: <p>I'm trying to compile a C program with the following Makefile:</p>
  
  
  
  <pre><code>msh: libFAT32.so
      gcc -Wall -fPIC -I. -o msh newTest.c -L. -lFAT32
  
  libFAT32.so: 
      gcc -std=c99 -shared -o libFAT32.so -fPIC fat32.c
  
  clean: 
      rm *.so msh
  </code></pre>
  
  <p>However, every time I try to compile the program with make I get the following error:</p>
  
  <pre class="lang-c prettyprint-override"><code>user@user-VirtualBox:~/fat1$ make
      gcc -Wall -fPIC -I. -o msh newTest.c -L. -lFAT32
      ./libFAT32.so: undefined reference to `le32toh'
      ./libFAT32.so: undefined reference to `le16toh'
      collect2: error: ld returned 1 exit status
      Makefile:19: recipe for target 'msh' failed
      make: *** [msh] Error 1
  </code></pre>
  
  <p>Can some one tell how to fix this?</p>