Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 26d008c

Browse files
committed
Use compiler driver, not linker, to link shared libraries on Unixware.
1 parent 7e77668 commit 26d008c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/Makefile.shlib

+14-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.28 2000/10/25 16:13:52 petere Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.29 2000/10/27 20:09:48 petere Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -184,7 +184,19 @@ endif
184184

185185
ifeq ($(PORTNAME), unixware)
186186
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
187-
LINK.shared = $(LD) -G -z text
187+
ifndef cplusplus
188+
ifeq ($(GCC), yes)
189+
LINK.shared = $(CC) -shared
190+
else
191+
LINK.shared = $(CC) -G
192+
endif
193+
else
194+
ifeq ($(GXX), yes)
195+
LINK.shared = $(CXX) -shared
196+
else
197+
LINK.shared = $(CXX) -G
198+
endif
199+
endif
188200
endif
189201

190202
ifeq ($(PORTNAME), win)

0 commit comments

Comments
 (0)