aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-10-27 20:09:48 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-10-27 20:09:48 +0000
commit26d008c62f327b04087e3a6676cf66c95c46de93 (patch)
tree0f255308bc99a3ad67a81e292f98b73c2ec980bb /src
parent7e77668e7a4a5a6e1fffbdffec4bae960a45f249 (diff)
downloadpostgresql-26d008c62f327b04087e3a6676cf66c95c46de93.tar.gz
postgresql-26d008c62f327b04087e3a6676cf66c95c46de93.zip
Use compiler driver, not linker, to link shared libraries on Unixware.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.shlib16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index cab71b0a745..a1495971f42 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.28 2000/10/25 16:13:52 petere Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.29 2000/10/27 20:09:48 petere Exp $
#
#-------------------------------------------------------------------------
@@ -184,7 +184,19 @@ endif
ifeq ($(PORTNAME), unixware)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- LINK.shared = $(LD) -G -z text
+ ifndef cplusplus
+ ifeq ($(GCC), yes)
+ LINK.shared = $(CC) -shared
+ else
+ LINK.shared = $(CC) -G
+ endif
+ else
+ ifeq ($(GXX), yes)
+ LINK.shared = $(CXX) -shared
+ else
+ LINK.shared = $(CXX) -G
+ endif
+ endif
endif
ifeq ($(PORTNAME), win)