[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with localcharset test

From: Antoine LUONG
Subject: Re: Problem with localcharset test
Date: Mon, 3 Sep 2018 19:06:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Le 03/09/2018 à 18:27, Bruno Haible a écrit :
Hi Antoine,

There seems to be a problem with the addition of the manual test in the
localcharset module, when used in a subdirectory:

   make[6]: Entering directory `/home/aluong/test-gnulib/libmissing/tests'
   make[6]: *** No rule to make target `../../libmissing/libmissing.a',
needed by `test-localcharset'. Stop.
Each of the tests needs to link against the libmissing.a library.
Therefore this library needs to be built before the tests are compiled
and linked.

Probably something's wrong in the Makefile regarding the build order...

The gnulib-tool command used was this one:

   gnulib-tool --import --lib=libmissing --source-base=libmissing
--m4-base=libmissing/m4 --tests-base=libmissing/tests --with-tests
Does it work when you use two directories that are siblings instead
of ancestors?

    gnulib-tool --import --lib=libmissing --source-base=libmissing \
   --m4-base=libmissing/m4 --tests-base=libmissing-tests --with-tests \


Thanks for your quick answer.

It works when using sibling directories.
Other tests do work as well, so I figured there was an issue with this one because it is defined as noinst_PROGRAMS.

I can reproduce the issue with this minimal Makefile.am:

ACLOCAL_AMFLAGS = -I libmissing/m4
SUBDIRS = libmissing

and this configure.ac:

 AC_INIT(mymodule, 1.0.0)
 AM_INIT_AUTOMAKE([-Wall tar-pax 1.9])





Am I missing something?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]