irqbalance: fix compilation for USE_GLIBC and BUILD_NLS cases 11978/head
authorIan Cooper <iancooper@hotmail.com>
Mon, 27 Apr 2020 21:48:53 +0000 (22:48 +0100)
committerIan Cooper <iancooper@hotmail.com>
Tue, 28 Apr 2020 05:37:50 +0000 (06:37 +0100)
commit88c25e87a1591c836cc384f91d38628e0b5d7800
treebbd295e781798111c4e577e7b148cc2a9c769c9f
parent2fadd0279f4150d55e61dfe8f2d2b983dc7a5e4b
irqbalance: fix compilation for USE_GLIBC and BUILD_NLS cases

The package Makefile was not taking into consideration that the build
may be using BUILD_NLS with libintl-full and libiconv-full and was
trying to link the wrong versions of these libraries in this case.

The necessary flags are added by nls.mk to TARGET_LDFLAGS and can be
passed to irqbalance's configure script for setting the GLIB2_LIBS
variable instead of the explicit static link to the libiconv stub.

The PKG_BUILD_DEPENDS line should be modified so as to add to and not
override the definition set by nls.mk, which will ensure the right
version of libiconv and libintl is built beforehand.

A DEPENDS:= line should be added to the package definition using the
variables defined in nls.mk, which will add the appropriate version
of libintl and libiconv (vanilla or -full versions)

If USE_GLIBC is true, then libpthread needs to be explicitly passed
to the configure script in the GLIB2_LIBS variable for linking.

Signed-off-by: Ian Cooper <iancooper@hotmail.com>
utils/irqbalance/Makefile