Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4d1ba04

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 parent45fe3af commit4d1ba04

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 neededdepending on platform.
18+
# object files that are conditionally neededas 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
overrideCPPFLAGS := -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)

[8]ページ先頭

©2009-2025 Movatter.jp