Skip to content

Commit 928e73e

Browse files
committed
Add -lpgport to ecpglib link only on win32. Other platforms have
problems with it.
1 parent 9bfee3a commit 928e73e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/interfaces/ecpg/ecpglib/Makefile

Lines changed: 6 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/ecpg/ecpglib/Makefile,v 1.19 2004/05/21 00:14:38 tgl Exp $
7+
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.20 2004/05/21 03:10:47 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -23,7 +23,11 @@ override CFLAGS += $(PTHREAD_CFLAGS)
2323
OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
2424
connect.o misc.o
2525

26-
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) \
26+
ifeq ($(PORTNAME), win32)
27+
PGPORT=-lpgport
28+
endif
29+
30+
SHLIB_LINK = -L../pgtypeslib -lpgtypes $(PGPORT) $(libpq) \
2731
$(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt -lm, $(LIBS)) $(PTHREAD_LIBS)
2832

2933
all: all-lib

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