r16751: The precompiled header should really be in the $(buildir) and
authorGerald Carter <jerry@samba.org>
Sat, 1 Jul 2006 18:26:31 +0000 (18:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:09 +0000 (11:19 -0500)
not the $(srcdir) to allow multiple concurrent compiles when the
source tree is shared via nfs.
(This used to be commit b79e1c011d577581eebb90b95dbdee11f8a96c3b)

source3/Makefile.in

index c8174d844053b544a09e4fd82a65b55241f86e89..127936125bf675ffe8f29d90d6dcdbd6a11bee54 100644 (file)
@@ -851,8 +851,8 @@ MAKEDIR = || exec false; \
 # this adds support for precompiled headers. To use it, install a snapshot
 # of gcc-3.4 and run 'make pch' before you do the main build. 
 pch: proto_exists
-       rm -f $(srcdir)/include/includes.h.gch
-       $(CC) -I. -I$(srcdir) $(FLAGS) @PIE_CFLAGS@ -c $(srcdir)/include/includes.h -o $(srcdir)/include/includes.h.gch
+       rm -f $(builddir)/include/includes.h.gch
+       $(CC) -I. -I$(srcdir) $(FLAGS) @PIE_CFLAGS@ -c $(srcdir)/include/includes.h -o $(builddir)/include/includes.h.gch
 
 # These dependencies are only approximately correct: we want to make
 # sure Samba's paths are updated if ./configure is re-run.  Really it