[PATCH 1/1] Add wpa_supplicant Makefile target libwpa_ctrl.so

Jouni Malinen j
Thu Apr 23 14:56:17 PDT 2015

On Tue, Apr 21, 2015 at 09:42:34PM +0200, J?rg Krause wrote:
> "make -C wpa_supplicant libwpa_ctrl.so" can now be used to build a shared
> library that can be linked with external programs using wpa_ctrl.h. This
> makes it easier to create a separate library package that does not
> depend in any other hostap.git file other than src/common/wpa_ctrl.h and
> the libwpa_ctrl.so built with this new make target.

This does not seem to be sufficient:

wpa_supplicant$ make libwpa_ctrl.so
/usr/bin/ld: ../src/common/wpa_ctrl.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
../src/common/wpa_ctrl.o: error adding symbols: Bad value

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list