package/gettext-tiny: fix prefix in autopoint
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 14 Nov 2019 19:22:08 +0000 (20:22 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 15 Nov 2019 21:14:13 +0000 (22:14 +0100)
gettext-tiny also installs a fake autopoint, but it still needs to be
pointed at the m4 macros, which the template autopoint expects to be in
@datadir@, where datadir is the traditional autotools datadir, derived
from datarootdir, itself derived from prefix.

So, pass prefix so all the locations are properly pointing to HOST_DIR,
instead of the default /usr/local.

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

index 23a9d9a057dfcf275858ccd20f97bed36c03bbbc..6ee6269e09b4950ec9e4ce3008bea15cc154847b 100644 (file)
@@ -52,6 +52,7 @@ HOST_GETTEXT_TINY_POST_PATCH_HOOKS += HOST_GETTEXT_TINY_COPY_EXTRA_FILES
 define HOST_GETTEXT_TINY_BUILD_CMDS
        $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
                $(HOST_CONFIGURE_OPTS) \
+               prefix=$(HOST_DIR) \
                CFLAGS="$(HOST_CFLAGS) -fPIC" \
                LIBINTL=NONE