aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-11-25 18:19:31 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-11-25 18:19:31 +0000
commit4d1ba044d897be5bc85adbb9d6b8b4e5976b4e44 (patch)
tree52990ad1cac91780923689b3bba6790c1674295f
parent45fe3afc04438bd11aee7df0b6cc250ef017d3da (diff)
downloadpostgresql-4d1ba044d897be5bc85adbb9d6b8b4e5976b4e44.tar.gz
postgresql-4d1ba044d897be5bc85adbb9d6b8b4e5976b4e44.zip
Omit src/port/pipe.c on non-Windows platforms. It's useless and draws
complaints about empty object files on some platforms, eg Darwin.
-rw-r--r--src/port/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/port/Makefile b/src/port/Makefile
index 572e7fc8352..7fc6f97119a 100644
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -15,11 +15,11 @@
# for use only by the backend binaries
#
# LIBOBJS is set by configure (via Makefile.global) to be the list of
-# object files that are conditionally needed depending on platform.
+# object files that are conditionally needed as determined by configure's probing.
# OBJS adds additional object files that are always compiled.
#
# IDENTIFICATION
-# $PostgreSQL: pgsql/src/port/Makefile,v 1.36 2008/02/18 14:51:48 petere Exp $
+# $PostgreSQL: pgsql/src/port/Makefile,v 1.37 2008/11/25 18:19:31 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -30,7 +30,11 @@ include $(top_builddir)/src/Makefile.global
override CPPFLAGS := -I$(top_builddir)/src/port -DFRONTEND $(CPPFLAGS)
LIBS += $(PTHREAD_LIBS)
-OBJS = $(LIBOBJS) chklocale.o copydir.o dirmod.o exec.o noblock.o path.o pipe.o pgsleep.o pgstrcasecmp.o qsort.o qsort_arg.o sprompt.o thread.o
+OBJS = $(LIBOBJS) chklocale.o copydir.o dirmod.o exec.o noblock.o path.o \
+ pgsleep.o pgstrcasecmp.o qsort.o qsort_arg.o sprompt.o thread.o
+ifneq (,$(filter $(PORTNAME),cygwin win32))
+OBJS += pipe.o
+endif
# foo_srv.o and foo.o are both built from foo.c, but only foo.o has -DFRONTEND
OBJS_SRV = $(OBJS:%.o=%_srv.o)