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
0225d1f0
Commit
0225d1f0
authored
Nov 08, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'soname's for various platforms, so that libpq.so.2.0 is considered
compatible with libpq.so.2.1, etc.
parent
ac27a5b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
src/Makefile.shlib
src/Makefile.shlib
+13
-8
No files found.
src/Makefile.shlib
View file @
0225d1f0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
# Copyright (c) 1998, Regents of the University of California
#
#
# IDENTIFICATION
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.3
2 2000/11/04 16:35:54
petere Exp $
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.3
3 2000/11/08 20:18:49
petere Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -97,6 +97,7 @@ else
...
@@ -97,6 +97,7 @@ else
override
CXXFLAGS
+=
$(CXXFLAGS_SL)
override
CXXFLAGS
+=
$(CXXFLAGS_SL)
endif
endif
soname
=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
ifeq
($(PORTNAME), aix)
ifeq
($(PORTNAME), aix)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
...
@@ -111,7 +112,7 @@ endif
...
@@ -111,7 +112,7 @@ endif
ifeq
($(PORTNAME), openbsd)
ifeq
($(PORTNAME), openbsd)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
ifdef
ELF_SYSTEM
ifdef
ELF_SYSTEM
LINK.shared
=
$(LD)
-x
-Bshareable
-soname
$(s
hlib
)
LINK.shared
=
$(LD)
-x
-Bshareable
-soname
$(s
oname
)
else
else
LINK.shared
=
$(LD)
-x
-Bshareable
-Bforcearchive
LINK.shared
=
$(LD)
-x
-Bshareable
-Bforcearchive
endif
endif
...
@@ -120,7 +121,7 @@ endif
...
@@ -120,7 +121,7 @@ endif
ifeq
($(PORTNAME), bsdi)
ifeq
($(PORTNAME), bsdi)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
ifeq
($(DLSUFFIX), .so)
ifeq
($(DLSUFFIX), .so)
LINK.shared
=
$(LD)
-shared
-soname
$(s
hlib
)
LINK.shared
=
$(LD)
-shared
-soname
$(s
oname
)
endif
endif
ifeq
($(DLSUFFIX), .o)
ifeq
($(DLSUFFIX), .o)
LINK.shared
=
shlicc
-O
$(LDREL)
LINK.shared
=
shlicc
-O
$(LDREL)
...
@@ -130,7 +131,7 @@ endif
...
@@ -130,7 +131,7 @@ endif
ifeq
($(PORTNAME), freebsd)
ifeq
($(PORTNAME), freebsd)
ifdef
ELF_SYSTEM
ifdef
ELF_SYSTEM
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
LINK.shared
=
$(LD)
-x
-shared
-soname
$(s
hlib
)
LINK.shared
=
$(LD)
-x
-shared
-soname
$(s
oname
)
else
else
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LINK.shared
=
$(LD)
-x
-Bshareable
-Bforcearchive
LINK.shared
=
$(LD)
-x
-Bshareable
-Bforcearchive
...
@@ -138,10 +139,9 @@ ifeq ($(PORTNAME), freebsd)
...
@@ -138,10 +139,9 @@ ifeq ($(PORTNAME), freebsd)
endif
endif
ifeq
($(PORTNAME), netbsd)
ifeq
($(PORTNAME), netbsd)
soname
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
ifdef
ELF_SYSTEM
ifdef
ELF_SYSTEM
LINK.shared
=
$(COMPILER)
-shared
-Wl
,-soname
-Wl
,
$(soname)
LINK.shared
=
$(COMPILER)
-shared
-Wl
,-soname,
$(soname)
else
else
LINK.shared
=
$(LD)
-x
-Bshareable
-Bforcearchive
LINK.shared
=
$(LD)
-x
-Bshareable
-Bforcearchive
endif
endif
...
@@ -160,12 +160,17 @@ endif
...
@@ -160,12 +160,17 @@ endif
ifeq
($(PORTNAME), linux)
ifeq
($(PORTNAME), linux)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LINK.shared
=
$(COMPILER)
-shared
-Wl
,-soname,
$(s
hlib
)
LINK.shared
=
$(COMPILER)
-shared
-Wl
,-soname,
$(s
oname
)
endif
endif
ifeq
($(PORTNAME), solaris)
ifeq
($(PORTNAME), solaris)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
shlib
:=
lib
$(NAME)$(DLSUFFIX)
.
$(SO_MAJOR_VERSION)
.
$(SO_MINOR_VERSION)
LINK.shared
=
$(COMPILER)
-G
LINK.shared
=
$(COMPILER)
-G
ifeq
($(with_gnu_ld), yes)
LINK.shared
+=
-Wl
,-soname,
$(soname)
else
LINK.shared
+=
-Wl
,-h,
$(soname)
endif
SHLIB_LINK
+=
-ldl
-lsocket
-lresolv
-lnsl
-lm
-lc
SHLIB_LINK
+=
-ldl
-lsocket
-lresolv
-lnsl
-lm
-lc
endif
endif
...
@@ -199,7 +204,7 @@ ifeq ($(PORTNAME), unixware)
...
@@ -199,7 +204,7 @@ ifeq ($(PORTNAME), unixware)
LINK.shared
=
$(CXX)
-G
LINK.shared
=
$(CXX)
-G
endif
endif
endif
endif
LINK.shared
+=
-Wl
,-z,text
LINK.shared
+=
-Wl
,-z,text
-Wl
,-h,
$(soname)
endif
endif
ifeq
($(PORTNAME), win)
ifeq
($(PORTNAME), win)
...
...
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