# HG changeset patch # User Matthias Bolte # Date 1281742581 -7200 # Node ID 3718704d121fa214800576fbb002286222110d4d # Parent bb0ceefd22dcbd152663876d45482f7100e0f315 pthread: fix pthread.h creation for srcdir != builddir * modules/pthread (Makefile.am): Fix the rule to work also in a non-srcdir build. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-08-14 Matthias Bolte + + pthread: fix pthread.h creation for srcdir != builddir + * modules/pthread (Makefile.am): Fix the rule to work also in a + non-srcdir build. + 2010-08-13 Karl Berry * doc/regex.texi (Predefined Syntaxes): @smallexample. diff --git a/modules/pthread b/modules/pthread --- a/modules/pthread +++ b/modules/pthread @@ -18,7 +18,8 @@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. pthread.h: pthread.in.h - $(AM_V_GEN)ln -f pthread.in.h $@ || cp pthread.in.h $@ + $(AM_V_GEN)ln -f $(srcdir)/pthread.in.h $@ \ + || cp $(srcdir)/pthread.in.h $@ MOSTLYCLEANFILES += pthread.h Include: