File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 66# Copyright (c) 1998, Regents of the University of California
77#
88# 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 $
1010#
1111#-------------------------------------------------------------------------
1212
@@ -174,13 +174,24 @@ endif
174174
175175ifeq ($(PORTNAME), solaris)
176176 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
178190 ifeq ($(with_gnu_ld), yes)
179191 LINK.shared += -Wl,-soname,$(soname)
180192 else
181193 LINK.shared += -Wl,-h,$(soname)
182194 endif
183- SHLIB_LINK += -lm -lc
184195endif
185196
186197ifeq ($(PORTNAME), sunos4)
You can’t perform that action at this time.
0 commit comments