package/gettext-tiny: fix build of libintl.a
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 31 Mar 2019 15:34:29 +0000 (17:34 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 31 Mar 2019 18:54:43 +0000 (20:54 +0200)
commit01e0fec161ed4aa94fc1c594283200e2eb0b07fa
treef969704e0a1f346229e101201f85a6cef29994d0
parent916f02c7d98a704a03ef8c9efe37044d2f84d758
package/gettext-tiny: fix build of libintl.a

Since libintl.a can be pulled in during the build of other shared libs,
it must be compiled with -fPIC, which is what gettext-tiny's Makefile
would do.

Since we provide our own CFLAGS, they override those in the Makefile.

Fix that by ensuring that -fPIC is used when building the static
library.

Fixes:
    http://autobuild.buildroot.org/results/a38/a3800fd4ef2536cc2b82d38ea752baa2b227bc64/

Also, since GETTEXT_TINY_OPTS is used only once and contains a single
definition, get rid of it altogether.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Vadim Kochan <vadim4j@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gettext-tiny/gettext-tiny.mk