From: Matthias Bolte Date: Fri, 13 Aug 2010 23:36:21 +0000 (+0200) Subject: pthread: fix pthread.h creation for srcdir != builddir X-Git-Tag: v0.1~3937 X-Git-Url: https://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=7ba06c8ff37d8725cb824c64b94be41b9294ffb7 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 index 46c1ede9a..30aa41b21 100644 --- 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 index 9b930b1be..51d5dbb9d 100644 --- a/modules/pthread +++ b/modules/pthread @@ -18,7 +18,8 @@ BUILT_SOURCES += $(PTHREAD_H) # 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: