Static compilation for wpa_supplicant

Viewed 59

I'm trying to compile a static binary of wpa_supplicant:

Latest - https://www.w1.fi/releases/wpa_supplicant-2.10.tar.gz

Other similar - https://github.com/blunderbuss-wctf/wacker/tree/master/wpa_supplicant-2.8

But I'm not able to achieve it.

I've read about launch ./configure --enable-static before compilation, but this project has no ./configure file.

After some googling, this is what I've tried:

-Add -static to the CFLAGS line (line 6) in Makefile

-Modifying LDDFLAGS line (line 118) to remove -rdynamic setting there -static

When I launch a file command over the resulting wpa_supplicant binary, it always says dynamically linked so it didn't work.

How can I do this?

0 Answers
Related