mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
I'm quite fond of doing VPATH builds, i.e. building outside the source
tree. This also catches lots of little Makefile bugs, so here's a small patch for one of them (replacing an explicit reference to thread.c with a reference to it as the first prerequsite of the rule makes make look for it in the place where it was found (the source tree) rather than in the build tree. (using GNU make 3.79.1) John Gray
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# with broken/missing library files.
|
||||
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/port/Makefile,v 1.5 2003/08/08 02:55:08 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/src/port/Makefile,v 1.6 2003/08/13 03:12:04 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -23,7 +23,7 @@ libpgport.a: $(LIBOBJS)
|
||||
$(AR) crs $@ $^
|
||||
|
||||
thread.o: thread.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(THREAD_CFLAGS) -c thread.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(THREAD_CFLAGS) -c $<
|
||||
|
||||
clean distclean maintainer-clean:
|
||||
rm -f libpgport.a $(LIBOBJS)
|
||||
|
Reference in New Issue
Block a user