Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
8753b23c
Commit
8753b23c
authored
25 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix 'SO__MINOR_VERSION' typo for irix5; add AIX shlib support
from Andreas Z.; minor cosmetic cleanups.
parent
36ce6d43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Makefile.shlib
+41
-19
41 additions, 19 deletions
src/Makefile.shlib
with
41 additions
and
19 deletions
src/Makefile.shlib
+
41
−
19
View file @
8753b23c
...
...
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.1
3
1999/07/1
5 02:03
:0
0
tgl Exp $
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.1
4
1999/07/1
6 22:56
:0
1
tgl Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -56,25 +56,12 @@ install-shlib-dep :=
# Makefile.global (or really Makefile.port) to supply DLSUFFIX and other
# symbols.
ifeq
($(PORTNAME), irix5)
install-shlib-dep
:=
install-shlib
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
.
$(
SO__MINOR_VERSION
)
LDFLAGS_SL
:=
-shared
CFLAGS
+=
$(
CFLAGS_SL
)
endif
# Try to keep the sections in some kind of order, folks...
ifeq
($(PORTNAME), freebsd)
ifdef
BSD_SHLIB
install-shlib-dep
:=
install-shlib
ifdef
ELF_SYSTEM
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
LDFLAGS_SL
:=
-x
-shared
-soname
$(
shlib
)
else
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
.
$(
SO_MINOR_VERSION
)
LDFLAGS_SL
:=
-x
-Bshareable
-Bforcearchive
endif
CFLAGS
+=
$(
CFLAGS_SL
)
endif
ifeq
($(PORTNAME), aix)
install-shlib-dep
:=
install-shlib
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
SHLIB_LINK
+=
-lc
endif
ifeq
($(PORTNAME), bsd)
...
...
@@ -108,6 +95,20 @@ ifeq ($(PORTNAME), bsdi)
endif
endif
ifeq
($(PORTNAME), freebsd)
ifdef
BSD_SHLIB
install-shlib-dep
:=
install-shlib
ifdef
ELF_SYSTEM
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
LDFLAGS_SL
:=
-x
-shared
-soname
$(
shlib
)
else
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
.
$(
SO_MINOR_VERSION
)
LDFLAGS_SL
:=
-x
-Bshareable
-Bforcearchive
endif
CFLAGS
+=
$(
CFLAGS_SL
)
endif
endif
ifeq
($(PORTNAME), hpux)
install-shlib-dep
:=
install-shlib
# HPUX doesn't believe in version numbers for shlibs
...
...
@@ -116,6 +117,13 @@ ifeq ($(PORTNAME), hpux)
CFLAGS
+=
$(
CFLAGS_SL
)
endif
ifeq
($(PORTNAME), irix5)
install-shlib-dep
:=
install-shlib
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
.
$(
SO_MINOR_VERSION
)
LDFLAGS_SL
:=
-shared
CFLAGS
+=
$(
CFLAGS_SL
)
endif
ifeq
($(PORTNAME), linux)
install-shlib-dep
:=
install-shlib
shlib
:=
lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
.
$(
SO_MINOR_VERSION
)
...
...
@@ -188,6 +196,7 @@ all: lib$(NAME).a $(shlib)
# Rules to build regular and shared libraries
ifneq
($(PORTNAME), win)
lib$(NAME).a
:
$(OBJS)
ifdef
MK_NO_LORDER
$(
AR
)
$(
AROPT
)
$@
$(
OBJS
)
...
...
@@ -195,11 +204,14 @@ else
$(
AR
)
$(
AROPT
)
$@
`
lorder
$(
OBJS
)
|
tsort
`
endif
$(
RANLIB
)
$@
endif
ifneq
($(shlib),)
ifneq
($(PORTNAME), win)
ifneq
($(PORTNAME), aix)
# Normal case
$(shlib)
:
$(OBJS)
$(
LD
)
$(
LDFLAGS_SL
)
-o
$@
$(
OBJS
)
$(
SHLIB_LINK
)
if
[
"
$(
shlib
)
"
!=
"lib
$(
NAME
)$(
DLSUFFIX
)
.
$(
SO_MAJOR_VERSION
)
"
]
;
then
\
...
...
@@ -213,6 +225,16 @@ $(shlib): $(OBJS)
else
# AIX case
$(shlib)
:
lib$(NAME).a
$(
MKLDEXPORT
)
lib
$(
NAME
)
.a
$(
LIBDIR
)
>
lib
$(
NAME
)$(
EXPSUFF
)
$(
LD
)
-H512
-bM
:SRE
-bI
:
$(
SRCDIR
)
/backend/
$(
POSTGRES_IMP
)
-bE
:lib
$(
NAME
)$(
EXPSUFF
)
-o
$@
$<
$(
LDFLAGS
)
$(
SHLIB_LINK
)
endif
else
# WIN case
$(shlib) lib$(NAME).a
:
$(OBJS) $(SRCDIR)/utils/dllinit.o
$(
DLLTOOL
)
--export-all
--output-def
$(
NAME
)
.def
$(
OBJS
)
$(
DLLWRAP
)
-o
$(
shlib
)
--dllname
$(
shlib
)
--def
$(
NAME
)
.def
$(
OBJS
)
$(
SRCDIR
)
/utils/dllinit.o
$(
DLLINIT
)
$(
SHLIB_LINK
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment