automake
[Top][All Lists]
Advanced

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

Re: on Windows, BUILT_SOURCES does not append .exe


From: Vincent Torri
Subject: Re: on Windows, BUILT_SOURCES does not append .exe
Date: Mon, 22 Nov 2010 22:44:31 +0100 (CET)



On Mon, 22 Nov 2010, Ralf Wildenhues wrote:

* Dave Hart wrote on Mon, Nov 22, 2010 at 12:34:47AM CET:
On Sun, Nov 21, 2010 at 22:44 UTC, Vincent Torri <address@hidden> wrote:
On Sun, 21 Nov 2010, Ralf Wildenhues wrote:
* Vincent Torri wrote on Sun, Nov 21, 2010 at 11:14:23PM CET:
If I don't use BUILT_SOURCES, cmapdump binary is not built before
libcmaps, hence cmap_tounicode.c is not created, and compilation of
libcmaps fails.

Is there another solution ?

Yes: just specify cmapdump$(EXEEXT) as prerequisite to cmap_tounicode.c.

isn't what the line:

cmap_tounicode.c: cmapdump $(cmap_tounicode_files)

does ? Note that having that rule is not sufficient on linux (that is, even
if $(EXEEXT) 'should' (but not 'must', as .exe suffix is not necessary) be
added on widnows, it does not work on linux)

In that case you may need to add cmap_tounicode.c to BUILT_SOURCES,
leaving cmapdump out of same.

That shouldn't be necessary; you generally only need to list headers
there for which automake cannot know that they are generated and needed
early.  On GNU/Linux, the example code from the second post from Vincent
should just work.  Vincent, I'm afraid you might just have to debug the
makefile (make -d etc); maybe there is a 'cmapdump' file that make finds
to be matching?

Hmm, i tried with parallal build (make -j 4) and it fails without BUILT_SOURCES.

Vincent Torri



reply via email to

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