Skip to content

Commit 4d1ba04

Browse files
committed
Omit src/port/pipe.c on non-Windows platforms. It's useless and draws
complaints about empty object files on some platforms, eg Darwin.
1 parent 45fe3af commit 4d1ba04

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/port/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
# for use only by the backend binaries
1616
#
1717
# LIBOBJS is set by configure (via Makefile.global) to be the list of
18-
# object files that are conditionally needed depending on platform.
18+
# object files that are conditionally needed as determined by configure's probing.
1919
# OBJS adds additional object files that are always compiled.
2020
#
2121
# IDENTIFICATION
22-
# $PostgreSQL: pgsql/src/port/Makefile,v 1.36 2008/02/18 14:51:48 petere Exp $
22+
# $PostgreSQL: pgsql/src/port/Makefile,v 1.37 2008/11/25 18:19:31 tgl Exp $
2323
#
2424
#-------------------------------------------------------------------------
2525

@@ -30,7 +30,11 @@ include $(top_builddir)/src/Makefile.global
3030
override CPPFLAGS := -I$(top_builddir)/src/port -DFRONTEND $(CPPFLAGS)
3131
LIBS += $(PTHREAD_LIBS)
3232

33-
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
33+
OBJS = $(LIBOBJS) chklocale.o copydir.o dirmod.o exec.o noblock.o path.o \
34+
pgsleep.o pgstrcasecmp.o qsort.o qsort_arg.o sprompt.o thread.o
35+
ifneq (,$(filter $(PORTNAME),cygwin win32))
36+
OBJS += pipe.o
37+
endif
3438

3539
# foo_srv.o and foo.o are both built from foo.c, but only foo.o has -DFRONTEND
3640
OBJS_SRV = $(OBJS:%.o=%_srv.o)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy