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

Lines changed: 14 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy