Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c7add816
Commit
c7add816
authored
Oct 16, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export only required symbols in libpq on Win32.
Magnus Hagander
parent
88fd162e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
4 deletions
+41
-4
src/Makefile.shlib
src/Makefile.shlib
+13
-1
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+2
-1
src/interfaces/libpq/blibpqdll.def
src/interfaces/libpq/blibpqdll.def
+8
-0
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/fe-secure.c
+7
-1
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-fe.h
+3
-1
src/interfaces/libpq/libpqddll.def
src/interfaces/libpq/libpqddll.def
+4
-0
src/interfaces/libpq/libpqdll.def
src/interfaces/libpq/libpqdll.def
+4
-0
No files found.
src/Makefile.shlib
View file @
c7add816
...
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.8
5 2004/10/15 05:11:00
momjian Exp $
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.8
6 2004/10/16 03:26:43
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -31,6 +31,8 @@
# DLLTOOL_DEFFLAGS Additional flags when creating the dll .def file
# DLLTOOL_LIBFLAGS Additional flags when creating the lib<module>.a file
# DLLWRAP_FLAGS Additional flags to dllwrap
# DLL_DEFFILE Use pre-existing .def file instead of auto-generating
# one with all exports in it (win32 only).
#
# The module Makefile must also include
# $(top_builddir)/src/Makefile.global before including this file.
...
...
@@ -306,9 +308,14 @@ else # PORTNAME == cygwin
# Cygwin case
$(shlib) lib$(NAME).a
:
$(OBJS)
ifndef
DLL_DEFFILE
$(DLLTOOL)
--export-all
$(DLLTOOL_DEFFLAGS)
--output-def
$(NAME)
.def
$(OBJS)
$(DLLWRAP)
$(LDFLAGS_SL)
-o
$(shlib)
--dllname
$(shlib)
$(DLLWRAP_FLAGS)
--def
$(NAME)
.def
$(OBJS)
$(SHLIB_LINK)
$(DLLTOOL)
--dllname
$(shlib)
$(DLLTOOL_LIBFLAGS)
--def
$(NAME)
.def
--output-lib
lib
$(NAME)
.a
else
$(DLLWRAP)
$(LDFLAGS_SL)
-o
$(shlib)
--dllname
$(shlib)
$(DLLWRAP_FLAGS)
--def
$(DLL_DEFFILE)
$(OBJS)
$(SHLIB_LINK)
$(DLLTOOL)
--dllname
$(shlib)
$(DLLTOOL_LIBFLAGS)
--def
$(DLL_DEFFILE)
--output-lib
lib
$(NAME)
.a
endif
endif
# PORTNAME == cygwin
...
...
@@ -316,9 +323,14 @@ else # PORTNAME == win32
# win32 case
$(shlib) lib$(NAME).a
:
$(OBJS)
ifndef
DLL_DEFFILE
$(DLLTOOL)
--export-all
$(DLLTOOL_DEFFLAGS)
--output-def
$(NAME)
.def
$(OBJS)
$(DLLWRAP)
$(LDFLAGS_SL)
-o
$(shlib)
--dllname
$(shlib)
$(DLLWRAP_FLAGS)
--def
$(NAME)
.def
$(OBJS)
$(SHLIB_LINK)
$(DLLTOOL)
--dllname
$(shlib)
$(DLLTOOL_LIBFLAGS)
--def
$(NAME)
.def
--output-lib
lib
$(NAME)
.a
else
$(DLLWRAP)
$(LDFLAGS_SL)
-o
$(shlib)
--dllname
$(shlib)
$(DLLWRAP_FLAGS)
--def
$(DLL_DEFFILE)
$(OBJS)
$(SHLIB_LINK)
$(DLLTOOL)
--dllname
$(shlib)
$(DLLTOOL_LIBFLAGS)
--def
$(DLL_DEFFILE)
--output-lib
lib
$(NAME)
.a
endif
endif
# PORTNAME == win32
...
...
src/interfaces/libpq/Makefile
View file @
c7add816
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.11
7 2004/10/12 04:48:36 neilc
Exp $
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.11
8 2004/10/16 03:26:43 momjian
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -34,6 +34,7 @@ ifeq ($(PORTNAME), win32)
OBJS
+=
win32.o libpqrc.o
libpqrc.o
:
libpq.rc
windres
-i
libpq.rc
-o
libpqrc.o
DLL_DEFFILE
=
libpqdll.def
ifeq
($(enable_thread_safety), yes)
# This doesn't work yet because configure test fails. 2004-06-19
OBJS
+=
pthread-win32.o
...
...
src/interfaces/libpq/blibpqdll.def
View file @
c7add816
...
...
@@ -115,6 +115,10 @@ EXPORTS
_PQsendQueryPrepared @ 111
_PQdsplen @ 112
_PQserverVersion @ 113
_PQgetssl @ 114
_pg_char_to_encoding @ 115
_pg_valid_server_encoding @ 116
_pqsignal @ 117
; Aliases for MS compatible names
PQconnectdb = _PQconnectdb
...
...
@@ -230,3 +234,7 @@ EXPORTS
PQsendQueryPrepared = _PQsendQueryPrepared
PQdsplen = _PQdsplen
PQserverVersion = _PQserverVersion
PQgetssl = _PQgetssl
pg_char_to_encoding = _pg_char_to_encoding
pg_valid_server_encoding = _pg_valid_server_encoding
pqsignal = _pqsignal
src/interfaces/libpq/fe-secure.c
View file @
c7add816
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.5
4 2004/09/28 00:06:02
momjian Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.5
5 2004/10/16 03:26:43
momjian Exp $
*
* NOTES
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
...
...
@@ -1201,6 +1201,12 @@ PQgetssl(PGconn *conn)
return
NULL
;
return
conn
->
ssl
;
}
#else
void
*
PQgetssl
(
PGconn
*
conn
)
{
return
NULL
;
}
#endif
/* USE_SSL */
...
...
src/interfaces/libpq/libpq-fe.h
View file @
c7add816
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.1
09 2004/10/16 03:10:17
momjian Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.1
10 2004/10/16 03:26:43
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -258,6 +258,8 @@ extern int PQsetClientEncoding(PGconn *conn, const char *encoding);
#ifdef USE_SSL
/* Get the SSL structure associated with a connection */
extern
SSL
*
PQgetssl
(
PGconn
*
conn
);
#else
extern
void
*
PQgetssl
(
PGconn
*
conn
);
#endif
/* Set verbosity for PQerrorMessage and PQresultErrorMessage */
...
...
src/interfaces/libpq/libpqddll.def
View file @
c7add816
...
...
@@ -115,3 +115,7 @@ EXPORTS
PQsendQueryPrepared @ 111
PQdsplen @ 112
PQserverVersion @ 113
PQgetssl @ 114
pg_char_to_encoding @ 115
pg_valid_server_encoding @ 116
pqsignal @ 117
src/interfaces/libpq/libpqdll.def
View file @
c7add816
...
...
@@ -115,3 +115,7 @@ EXPORTS
PQsendQueryPrepared @ 111
PQdsplen @ 112
PQserverVersion @ 113
PQgetssl @ 114
pg_char_to_encoding @ 115
pg_valid_server_encoding @ 116
pqsignal @ 117
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment