Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ee7de3d

Browse files
committed
Make sure no libs use libpgport by removing it from the link line.
1 parent 2e8252d commit ee7de3d

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

src/bin/psql/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
66
# Portions Copyright (c) 1994, Regents of the University of California
77
#
8-
# $PostgreSQL: pgsql/src/bin/psql/Makefile,v 1.49 2004/10/04 18:05:55 momjian Exp $
8+
# $PostgreSQL: pgsql/src/bin/psql/Makefile,v 1.50 2004/10/04 20:36:10 momjian Exp $
99
#
1010
#-------------------------------------------------------------------------
1111

@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
1515

1616
REFDOCDIR= $(top_srcdir)/doc/src/sgml/ref
1717

18-
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS) -DFRONTEND
18+
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
1919

2020
OBJS= command.o common.o help.o input.o stringutils.o mainloop.o copy.o \
2121
startup.o prompt.o variables.o large_obj.o print.o describe.o \

src/interfaces/ecpg/ecpglib/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.25 2004/07/13 00:06:41 tgl Exp $
7+
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.26 2004/10/04 20:36:11 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -21,6 +21,9 @@ override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \
2121
-I$(libpq_srcdir) -I$(top_builddir)/src/port $(CPPFLAGS)
2222
override CFLAGS += $(PTHREAD_CFLAGS)
2323

24+
# Need to recomple any libpgport object files
25+
LIBS := $(patsubst -lpgport,, $(LIBS))
26+
2427
OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
2528
connect.o misc.o path.o exec.o
2629

src/interfaces/ecpg/pgtypeslib/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.22 2004/07/13 00:06:43 tgl Exp $
7+
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.23 2004/10/04 20:36:12 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -21,6 +21,9 @@ override CPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include \
2121
-I$(top_srcdir)/src/include/utils -I$(libpq_srcdir) $(CPPFLAGS) \
2222
$(PTHREAD_CFLAGS) -DFRONTEND
2323

24+
# Need to recomple any libpgport object files
25+
LIBS := $(patsubst -lpgport,, $(LIBS))
26+
2427
SHLIB_LINK += -lm
2528

2629
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \

src/interfaces/libpq/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
7-
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.113 2004/09/26 02:14:47 momjian Exp $
7+
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.114 2004/10/04 20:36:12 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -19,9 +19,12 @@ SO_MAJOR_VERSION= 3
1919
SO_MINOR_VERSION= 2
2020
DLTYPE= library
2121

22-
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port -DFRONTEND
22+
override CPPFLAGS := -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
2323
override CFLAGS += $(PTHREAD_CFLAGS)
2424

25+
# Need to recomple any libpgport object files
26+
LIBS := $(patsubst -lpgport,, $(LIBS))
27+
2528
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
2629
fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o \
2730
dllist.o md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o \

0 commit comments

Comments
 (0)