Skip to content

Commit 3cd77da

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 it wasn't on the server-build list.
1 parent 5749f6e commit 3cd77da

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
override CPPFLAGS := -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)
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