6
6
# Copyright (c) 1998, Regents of the University of California
7
7
#
8
8
# IDENTIFICATION
9
- # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.39 2001/02/10 16:25:10 momjian Exp $
9
+ # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.40 2001/02/10 16:26:38 momjian Exp $
10
10
#
11
11
#-------------------------------------------------------------------------
12
12
@@ -112,7 +112,7 @@ endif
112
112
ifeq ($(PORTNAME), openbsd)
113
113
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
114
114
ifdef ELF_SYSTEM
115
- LINK.shared = $(COMPILER ) -shared -Wl,-x,- soname, $(soname)
115
+ LINK.shared = $(LD ) -x -Bshareable - soname $(soname)
116
116
else
117
117
LINK.shared = $(LD) -x -Bshareable -Bforcearchive
118
118
endif
@@ -121,7 +121,7 @@ endif
121
121
ifeq ($(PORTNAME), bsdi)
122
122
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
123
123
ifeq ($(DLSUFFIX), .so)
124
- LINK.shared = $(COMPILER ) -shared -Wl,- soname, $(soname)
124
+ LINK.shared = $(LD ) -shared -soname $(soname)
125
125
endif
126
126
ifeq ($(DLSUFFIX), .o)
127
127
LINK.shared = shlicc -O $(LDREL)
@@ -131,7 +131,7 @@ endif
131
131
ifeq ($(PORTNAME), freebsd)
132
132
ifdef ELF_SYSTEM
133
133
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
134
- LINK.shared = $(COMPILER ) -shared -Wl,-x,- soname, $(soname)
134
+ LINK.shared = $(LD ) -x - shared -soname $(soname)
135
135
else
136
136
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
137
137
LINK.shared = $(LD) -x -Bshareable -Bforcearchive
@@ -165,12 +165,13 @@ endif
165
165
166
166
ifeq ($(PORTNAME), solaris)
167
167
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
168
+ LINK.shared = $(COMPILER) -G
168
169
ifeq ($(with_gnu_ld), yes)
169
- LINK.shared = $(COMPILER) -G -Wl,-soname,$(soname)
170
+ LINK.shared += -Wl,-soname,$(soname)
170
171
else
171
- LINK.shared = $(COMPILER) -G -Wl,-h,$(soname)
172
+ LINK.shared += -Wl,-h,$(soname)
172
173
endif
173
- SHLIB_LINK = $(COMPILER) -G -lm -lc
174
+ SHLIB_LINK += -lm -lc
174
175
endif
175
176
176
177
ifeq ($(PORTNAME), osf)
0 commit comments