[PATCH 1/1] Add wpa_supplicant Makefile target libwpa_ctrl.so
Jörg Krause
joerg.krause
Tue May 5 06:56:49 PDT 2015
On Fr, 2015-04-24 at 00:56 +0300, Jouni Malinen wrote:
> 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
>
This worked for me in Buildroot because -fPIC was passed to CFLAGS by
the make environment. Sorry for not testing without Buildroot.
I will prepare a revised version.
Best regards
J?rg Krause
More information about the Hostap
mailing list