bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] pthread: Fix pthread.h creation for srcdir != builddir


From: Jim Meyering
Subject: Re: [PATCH] pthread: Fix pthread.h creation for srcdir != builddir
Date: Sat, 14 Aug 2010 15:54:27 +0200

Matthias Bolte wrote:
> diff --git a/modules/pthread b/modules/pthread
> index 9b930b1..76eca90 100644
> --- a/modules/pthread
> +++ b/modules/pthread
> @@ -18,7 +18,7 @@ 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 
> $@

Hi Matthias,
Thank you for the patch.
I've added a ChangeLog entry and split the slightly-too-long line.
Here's what I've pushed:


>From 7ba06c8ff37d8725cb824c64b94be41b9294ffb7 Mon Sep 17 00:00:00 2001
From: Matthias Bolte <address@hidden>
Date: Sat, 14 Aug 2010 01:36:21 +0200
Subject: [PATCH] pthread: fix pthread.h creation for srcdir != builddir

* modules/pthread (Makefile.am): Fix the rule to work also in a
non-srcdir build.
---
 ChangeLog       |    6 ++++++
 modules/pthread |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 46c1ede..30aa41b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-14  Matthias Bolte  <address@hidden>
+
+       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  <address@hidden>

        * doc/regex.texi (Predefined Syntaxes): @smallexample.
diff --git a/modules/pthread b/modules/pthread
index 9b930b1..51d5dbb 100644
--- a/modules/pthread
+++ b/modules/pthread
@@ -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:
--
1.7.2.1.186.gffe84



reply via email to

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