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

Commit3cd77da

Browse files
committed
Build server libpgport with all non-FRONTEND object files. This is to
fix a Win32 bug where pipe.c included a file that used FRONTEND, but itwasn't on the server-build list.
1 parent5749f6e commit3cd77da

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

‎src/port/Makefile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#for use only by the backend binaries
1616
#
1717
# IDENTIFICATION
18-
# $PostgreSQL: pgsql/src/port/Makefile,v 1.30 2005/12/09 21:19:36 petere Exp $
18+
# $PostgreSQL: pgsql/src/port/Makefile,v 1.31 2006/05/08 02:18:50 momjian Exp $
1919
#
2020
#-------------------------------------------------------------------------
2121

@@ -26,12 +26,8 @@ include $(top_builddir)/src/Makefile.global
2626
overrideCPPFLAGS := -I$(top_builddir)/src/port -DFRONTEND$(CPPFLAGS)
2727
LIBS +=$(PTHREAD_LIBS)
2828

29-
# Replace object files that use FRONTEND define
30-
LIBOBJS_SRV :=$(LIBOBJS)
31-
LIBOBJS_SRV :=$(patsubst dirmod.o,dirmod_srv.o,$(LIBOBJS_SRV))
32-
LIBOBJS_SRV :=$(patsubst exec.o,exec_srv.o,$(LIBOBJS_SRV))
33-
LIBOBJS_SRV :=$(patsubst getaddrinfo.o,getaddrinfo_srv.o,$(LIBOBJS_SRV))
34-
LIBOBJS_SRV :=$(patsubst thread.o,thread_srv.o,$(LIBOBJS_SRV))
29+
# Replace all object files so they use FRONTEND define
30+
LIBOBJS_SRV :=$(LIBOBJS:%.o=%_srv.o)
3531

3632
all: libpgport.a libpgport_srv.a
3733

@@ -60,13 +56,7 @@ path.o: path.c pg_config_paths.h
6056
libpgport_srv.a:$(LIBOBJS_SRV)
6157
$(AR)$(AROPT)$@$^
6258

63-
dirmod_srv.o: dirmod.c
64-
$(CC)$(CFLAGS)$(subst -DFRONTEND,,$(CPPFLAGS)) -c$< -o$@
65-
66-
exec_srv.o: exec.c
67-
$(CC)$(CFLAGS)$(subst -DFRONTEND,,$(CPPFLAGS)) -c$< -o$@
68-
69-
getaddrinfo_srv.o: getaddrinfo.c
59+
%_srv.o:%.c
7060
$(CC)$(CFLAGS)$(subst -DFRONTEND,,$(CPPFLAGS)) -c$< -o$@
7161

7262
# No thread flags for server version

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp