pthread: fix pthread.h creation for srcdir != builddir
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 13 Aug 2010 23:36:21 +0000 (01:36 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 14 Aug 2010 13:48:04 +0000 (08:48 -0500)
* modules/pthread (Makefile.am): Fix the rule to work also in a
non-srcdir build.

ChangeLog
modules/pthread

index 46c1ede..30aa41b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
+
+       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  <karl@gnu.org>
 
        * doc/regex.texi (Predefined Syntaxes): @smallexample.
index 9b930b1..51d5dbb 100644 (file)
@@ -18,7 +18,8 @@ BUILT_SOURCES += $(PTHREAD_H)
 # We need the following in order to create <pthread.h> 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: