[Xcb] More pthread stubs.

M Joonas Pihlaja jpihlaja at cc.helsinki.fi
Tue Jun 22 06:26:52 PDT 2010


On Tue, 22 Jun 2010, Vincent Torri wrote:

> > As a workaround I'd revert back to creating stubs.c at autogen.sh time
> > and simply not care about dependency tracking.  In a larger project
> > perhaps we could invest time in fixing automake or whatever, but for
> > the size that pthread-stubs is, I'm not sure that's warranted.
> 
> maybe BUILT_SOURCES in Makefile.am can help you. See automake manual for more
> info

This doesn't do anything for me.  From the manual it seemed like the 
right thing to do, so I added "BUILT_SOURCES=stubs.c", reran 
autogen.sh, but "make distcheck" still complains the same as before:

make[1]: *** No rule to make target `stubs.c.m4', needed by `stubs.c'.  
Stop.

Somehow we would need to convince automake that stubs.c should be 
built not by the user (which is what BUILT_SOURCES seems to be saying 
on a more careful reread of the manual) but by the developer before 
rolling up a tarball.

Joonas


More information about the Xcb mailing list