File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 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.52 2001/06/20 20:25:11 petere Exp $
9
+ # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.53 2001/09/11 23: 20:41 petere Exp $
10
10
#
11
11
#-------------------------------------------------------------------------
12
12
@@ -174,13 +174,24 @@ endif
174
174
175
175
ifeq ($(PORTNAME), solaris)
176
176
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
177
- LINK.shared = $(COMPILER) -G
177
+ ifndef cplusplus
178
+ ifeq ($(GCC), yes)
179
+ LINK.shared = $(CC) -shared
180
+ else
181
+ LINK.shared = $(CC) -G
182
+ endif
183
+ else
184
+ ifeq ($(GXX), yes)
185
+ LINK.shared = $(CXX) -shared
186
+ else
187
+ LINK.shared = $(CXX) -G
188
+ endif
189
+ endif
178
190
ifeq ($(with_gnu_ld), yes)
179
191
LINK.shared += -Wl,-soname,$(soname)
180
192
else
181
193
LINK.shared += -Wl,-h,$(soname)
182
194
endif
183
- SHLIB_LINK += -lm -lc
184
195
endif
185
196
186
197
ifeq ($(PORTNAME), sunos4)
You can’t perform that action at this time.
0 commit comments