summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
diff options
context:
space:
mode:
authorBruce Momjian2001-02-10 17:17:39 +0000
committerBruce Momjian2001-02-10 17:17:39 +0000
commit00ab7b58969204c192636872ff3a6174b450e73c (patch)
treef7ac63f4abf472ae29d8f3124f527c724dcd644c /src/Makefile.shlib
parent8213e63d8cd9acbbfa8a13adeb1a88c4738c2b75 (diff)
Fix -Bsymbolic for FreeBSD and OpenBSD. NetBSD already had all these fixes.
Diffstat (limited to 'src/Makefile.shlib')
-rw-r--r--src/Makefile.shlib12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index dd9a0d350fb..b8d25927b96 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.41 2001/02/10 16:51:39 petere Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.42 2001/02/10 17:17:39 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -112,7 +112,8 @@ endif
ifeq ($(PORTNAME), openbsd)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
ifdef ELF_SYSTEM
- LINK.shared = $(LD) -x -Bshareable -soname $(soname)
+ LINK.shared = $(COMPILER) -shared -Wl,-x,-soname,$(soname)
+ SHLIB_LINK += -lc
else
LINK.shared = $(LD) -x -Bshareable -Bforcearchive
endif
@@ -121,7 +122,7 @@ endif
ifeq ($(PORTNAME), bsdi)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
ifeq ($(DLSUFFIX), .so)
- LINK.shared = $(COMPILER) -shared -Wl,-soname,$(soname)
+ LINK.shared = $(COMPILER) -shared -Wl,-x,-soname,$(soname)
SHLIB_LINK += -lc
endif
ifeq ($(DLSUFFIX), .o)
@@ -132,7 +133,8 @@ endif
ifeq ($(PORTNAME), freebsd)
ifdef ELF_SYSTEM
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
- LINK.shared = $(LD) -x -shared -soname $(soname)
+ LINK.shared = $(COMPILER) -shared -Wl,-x,-soname,$(soname)
+ SHLIB_LINK += -lc
else
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
LINK.shared = $(LD) -x -Bshareable -Bforcearchive
@@ -142,7 +144,7 @@ endif
ifeq ($(PORTNAME), netbsd)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
ifdef ELF_SYSTEM
- LINK.shared = $(COMPILER) -shared -Wl,-soname,$(soname)
+ LINK.shared = $(COMPILER) -shared -Wl,-x,-soname,$(soname)
else
LINK.shared = $(LD) -x -Bshareable -Bforcearchive
endif