title: Static compilation for wpa_supplicant
body: <p>I'm trying to compile a static binary of wpa_supplicant:</p>
  <p>Latest - <a href="https://www.w1.fi/releases/wpa_supplicant-2.10.tar.gz" rel="nofollow noreferrer">https://www.w1.fi/releases/wpa_supplicant-2.10.tar.gz</a></p>
  <p>Other similar - <a href="https://github.com/blunderbuss-wctf/wacker/tree/master/wpa_supplicant-2.8" rel="nofollow noreferrer">https://github.com/blunderbuss-wctf/wacker/tree/master/wpa_supplicant-2.8</a></p>
  <p>But I'm not able to achieve it.</p>
  <p>I've read about launch <code>./configure --enable-static</code> before compilation, but this project has no <code>./configure</code> file.</p>
  <p>After some googling, this is what I've tried:</p>
  <p>-Add <code>-static</code> to the CFLAGS line (line 6) in Makefile</p>
  <p>-Modifying LDDFLAGS line (line 118) to remove -rdynamic setting there -static</p>
  <p>When I launch a <code>file</code> command over the resulting wpa_supplicant binary, it always says <code>dynamically linked</code> so it didn't work.</p>
  <p>How can I do this?</p>