summaryrefslogtreecommitdiff
path: root/src/Makefile.shlib
diff options
context:
space:
mode:
authorBruce Momjian1999-03-14 16:03:33 +0000
committerBruce Momjian1999-03-14 16:03:33 +0000
commitaba8c12f679c2324fa42e718beab8e9d57409102 (patch)
treead8d1616fae148f4965555490450fda011b1694c /src/Makefile.shlib
parente94fffc1c1c822b16b82dcf7dab8d82ed2625d3d (diff)
We have tested the patches on three platforms:
NetBSD/macppc LinuxPPC FreeBSD 2.2.6-RELEASE All of them seem happy with the regression test. Note that, however, compiling with optimization enabled on NetBSD/macppc causes an initdb failure (other two platforms are ok). After checking the asm code, we are suspecting that might be a compiler(egcs) bug. Tatsuo Ishii
Diffstat (limited to 'src/Makefile.shlib')
-rw-r--r--src/Makefile.shlib8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index 7f1d083b113..c35bf8d825b 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.6 1999/01/17 06:18:08 momjian Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.7 1999/03/14 16:02:57 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -73,7 +73,11 @@ ifeq ($(PORTNAME), bsd)
ifdef BSD_SHLIB
install-shlib-dep := install-shlib
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- LDFLAGS_SL := -x -Bshareable -Bforcearchive
+ ifdef ELF_SYSTEM
+ LDFLAGS_SL := -x -Bshareable -soname $(shlib)
+ else
+ LDFLAGS_SL := -x -Bshareable -Bforcearchive
+ endif
CFLAGS += $(CFLAGS_SL)
endif
endif