5
5
# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
6
6
# Portions Copyright (c) 1994, Regents of the University of California
7
7
#
8
- # $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.137 2005/08/23 21:02:03 momjian Exp $
8
+ # $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.138 2005/08/29 00:47:35 momjian Exp $
9
9
#
10
10
# -------------------------------------------------------------------------
11
11
@@ -21,7 +21,9 @@ SO_MINOR_VERSION= 1
21
21
DLTYPE = library
22
22
23
23
override CPPFLAGS := -DFRONTEND -I$(srcdir ) $(CPPFLAGS ) -I$(top_builddir ) /src/port
24
+ ifneq ($(PORTNAME ) , win32)
24
25
override CFLAGS += $(PTHREAD_CFLAGS )
26
+ endif
25
27
26
28
# Need to recomple any libpgport object files
27
29
LIBS := $(patsubst -lpgport,, $(LIBS ) )
51
53
# Add libraries that libpq depends (or might depend) on into the
52
54
# shared library link. (The order in which you list them here doesn't
53
55
# matter.)
56
+ ifneq ($(PORTNAME ) , win32)
54
57
SHLIB_LINK += $(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5 -lssl -lsocket -lnsl -lresolv -lintl, $(LIBS ) ) $(PTHREAD_LIBS )
58
+ else
59
+ SHLIB_LINK += $(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5 -lssl -lsocket -lnsl -lresolv -lintl $(PTHREAD_LIBS ) , $(LIBS ) )
60
+ endif
55
61
ifeq ($(PORTNAME ) , win32)
56
62
SHLIB_LINK += -lshfolder -lwsock32 -lws2_32 $(filter -leay32 -lssleay32 -lcomerr32 -lkrb5_32, $(LIBS ) )
57
63
endif
0 commit comments