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
9b5e108e
Commit
9b5e108e
authored
Sep 19, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shared library creation to work properly on AIX. Albe Laurenz
parent
48fe1374
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
23 deletions
+42
-23
src/Makefile.global.in
src/Makefile.global.in
+1
-8
src/Makefile.shlib
src/Makefile.shlib
+11
-5
src/interfaces/ecpg/test/Makefile.regress
src/interfaces/ecpg/test/Makefile.regress
+2
-2
src/interfaces/ecpg/test/compat_informix/Makefile
src/interfaces/ecpg/test/compat_informix/Makefile
+4
-3
src/interfaces/ecpg/test/pg_regress.sh
src/interfaces/ecpg/test/pg_regress.sh
+9
-1
src/makefiles/Makefile.aix
src/makefiles/Makefile.aix
+9
-0
src/test/regress/pg_regress.c
src/test/regress/pg_regress.c
+6
-4
No files found.
src/Makefile.global.in
View file @
9b5e108e
# -*-makefile-*-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.2
29 2006/09/11 13:35:08
tgl Exp $
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.2
30 2006/09/19 15:36:07
tgl Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
...
...
@@ -345,13 +345,6 @@ libpq := -L$(libpq_builddir) -lpq
ifeq
($(enable_shared), no)
libpq
+=
$(
filter
-lintl
-lssl
-lcrypto
-lkrb5
-lcrypt
,
$(LIBS)
)
\
$(LDAP_LIBS_FE)
$(PTHREAD_LIBS)
else
# On AIX even shared libraries do not remember their required libs,
# so again add in what libpq depends on.
ifeq
($(PORTNAME), aix)
libpq
+=
$(
filter
-lintl
-lssl
-lcrypto
-lkrb5
-lcrypt
,
$(LIBS)
)
\
$(LDAP_LIBS_FE)
$(PTHREAD_LIBS)
endif
endif
# This macro is for use by client executables (not libraries) that use libpq.
...
...
src/Makefile.shlib
View file @
9b5e108e
...
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.10
4 2006/04/28 02:53:20
tgl Exp $
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.10
5 2006/09/19 15:36:07
tgl Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -96,8 +96,8 @@ override CFLAGS += $(CFLAGS_SL)
soname
=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
ifeq
($(PORTNAME), aix)
shlib
=
lib
$(NAME)$(DLSUFFIX)
# SHLIB_LINK += -lc
shlib
=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
haslibarule
=
yes
endif
ifeq
($(PORTNAME), darwin)
...
...
@@ -295,9 +295,13 @@ endif
else
# PORTNAME == aix
# AIX case
$(shlib)
:
lib$(NAME).a
$(shlib) lib$(NAME).a
:
$(OBJS)
$(LINK.static)
lib
$(NAME)
.a
$^
$(RANLIB)
lib
$(NAME)
.a
$(MKLDEXPORT)
lib
$(NAME)
.a
>
lib
$(NAME)$(EXPSUFF)
$(COMPILER)
$(LDFLAGS_NO_L)
$(LDFLAGS_SL)
-o
$@
$<
-Wl
,-bE:lib
$(NAME)$(EXPSUFF)
$(SHLIB_LINK)
$(COMPILER)
$(LDFLAGS_NO_L)
$(LDFLAGS_SL)
-o
$(shlib)
lib
$(NAME)
.a
-Wl
,-bE:lib
$(NAME)$(EXPSUFF)
$(SHLIB_LINK)
rm
-f
lib
$(NAME)
.a
$(AR)
$(AROPT)
lib
$(NAME)
.a
$(shlib)
endif
# PORTNAME == aix
...
...
@@ -350,6 +354,7 @@ endif
ifeq
($(enable_shared), yes)
install-lib-shared
:
$(shlib)
ifneq
($(PORTNAME), aix)
# we don't install $(shlib) on AIX
$(INSTALL_SHLIB)
$<
'
$(DESTDIR)$(libdir)
/
$(shlib)
'
ifneq
($(PORTNAME), cygwin)
ifneq
($(PORTNAME), win32)
...
...
@@ -365,6 +370,7 @@ ifneq ($(shlib), $(shlib_bare))
endif
endif
# not win32
endif
# not cygwin
endif
# not aix
endif
# enable_shared
...
...
src/interfaces/ecpg/test/Makefile.regress
View file @
9b5e108e
...
...
@@ -2,8 +2,8 @@ override CPPFLAGS := -I../../include -I$(top_srcdir)/src/interfaces/ecpg/include
-I$(libpq_srcdir) $(CPPFLAGS)
override
CFLAGS
+=
$(PTHREAD_CFLAGS)
override LDFLAGS
:
= -L../../ecpglib -L../../pgtypeslib
-L../../../libpq
$(LDFLAGS)
override LIBS
:
= -l
pgtypes -lecpg -lpq
$(LIBS) $(PTHREAD_LIBS)
override LDFLAGS
:
= -L../../ecpglib -L../../pgtypeslib $(LDFLAGS)
override LIBS
:
= -l
ecpg -lpgtypes $(libpq)
$(LIBS) $(PTHREAD_LIBS)
ECPG
=
../../preproc/ecpg
-I
$(srcdir)
/../../include
...
...
src/interfaces/ecpg/test/compat_informix/Makefile
View file @
9b5e108e
...
...
@@ -3,11 +3,12 @@ top_builddir = ../../../../..
include
$(top_builddir)/src/Makefile.global
include
$(top_srcdir)/$(subdir)/../Makefile.regress
# special informix compatiblity switches
# special informix compatib
i
lity switches
ECPG
+=
-C
INFORMIX
ECPG_NOIND
=
$(ECPG)
-r
no_indicator
override
LDFLAGS
+=
-L
../../compatlib
override
LIBS
+=
$(LIBS)
-lecpg_compat
override LDFLAGS
:
= -L../../compatlib $(LDFLAGS)
override LIBS
:
= -lecpg_compat $(LIBS)
TESTS
=
test_informix test_informix.c
\
test_informix2 test_informix2.c
\
...
...
src/interfaces/ecpg/test/pg_regress.sh
View file @
9b5e108e
#! /bin/sh
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/pg_regress.sh,v 1.1
3 2006/09/08 13:32:27 meskes
Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/pg_regress.sh,v 1.1
4 2006/09/19 15:36:08 tgl
Exp $
me
=
`
basename
$0
`
...
...
@@ -322,6 +322,7 @@ do_temp_install(){
# Set up shared library paths, needed by psql and pg_encoding
# (if you run multibyte). LD_LIBRARY_PATH covers many platforms.
# DYLD_LIBRARY_PATH works on Darwin, and maybe other Mach-based systems.
# LIBPATH is for AIX.
# Feel free to account for others as well.
# ----------
...
...
@@ -339,6 +340,13 @@ do_temp_install(){
fi
export
DYLD_LIBRARY_PATH
if
[
-n
"
$LIBPATH
"
]
;
then
LIBPATH
=
"
$libdir
:
$LIBPATH
"
else
LIBPATH
=
$libdir
fi
export
LIBPATH
# ----------
# Windows needs shared libraries in PATH. (Only those linked into
# executables, not dlopen'ed ones)
...
...
src/makefiles/Makefile.aix
View file @
9b5e108e
...
...
@@ -5,6 +5,15 @@ MAKE_EXPORTS= true
RANLIB
=
touch
AROPT
=
crs
# -blibpath must contain ALL directories where we should look for libraries
libpath
:=
$(
shell
echo
$(
subst
-L
,:,
$(
filter
-L
/%,
$(LDFLAGS)
))
|
sed
-e
's/ //g'
)
:/usr/lib:/lib
ifeq
($(host_os), aix3.2.5)
rpath
=
-L
$(rpathdir)
else
rpath
=
-Wl
,-blibpath:
$(rpathdir)$(libpath)
endif
DLSUFFIX
=
.so
ifeq
($(host_os), aix3.2.5)
ifneq
($(GCC), yes)
...
...
src/test/regress/pg_regress.c
View file @
9b5e108e
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.2
0 2006/08/13 20:39:07
tgl Exp $
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.2
1 2006/09/19 15:36:08
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -507,12 +507,14 @@ initialize_environment(void)
* Set up shared library paths to include the temp install.
*
* LD_LIBRARY_PATH covers many platforms. DYLD_LIBRARY_PATH works on
* Darwin, and maybe other Mach-based systems. Windows needs shared
* libraries in PATH. (Only those linked into executables, not
* dlopen'ed ones) Feel free to account for others as well.
* Darwin, and maybe other Mach-based systems. LIBPATH is for AIX.
* Windows needs shared libraries in PATH (only those linked into
* executables, not dlopen'ed ones).
* Feel free to account for others as well.
*/
add_to_path
(
"LD_LIBRARY_PATH"
,
':'
,
libdir
);
add_to_path
(
"DYLD_LIBRARY_PATH"
,
':'
,
libdir
);
add_to_path
(
"LIBPATH"
,
':'
,
libdir
);
#if defined(WIN32) || defined(__CYGWIN__)
add_to_path
(
"PATH"
,
';'
,
libdir
);
#endif
...
...
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