Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
8753b23c
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8753b23c
编写于
7月 16, 1999
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix 'SO__MINOR_VERSION' typo for irix5; add AIX shlib support
from Andreas Z.; minor cosmetic cleanups.
上级
36ce6d43
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
41 addition
and
19 deletion
+41
-19
src/Makefile.shlib
src/Makefile.shlib
+41
-19
未找到文件。
src/Makefile.shlib
浏览文件 @
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/15 02:03:00
tgl Exp $
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.1
4 1999/07/16 22:56:01
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)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录