]> granicus.if.org Git - postgresql/commitdiff
Fix -Bsymbolic for FreeBSD and OpenBSD. NetBSD already had all these fixes.
authorBruce Momjian <bruce@momjian.us>
Sat, 10 Feb 2001 17:17:39 +0000 (17:17 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 10 Feb 2001 17:17:39 +0000 (17:17 +0000)
src/Makefile.shlib
src/makefiles/Makefile.freebsd
src/makefiles/Makefile.openbsd

index dd9a0d350fbe6cdbe4147b4f0b08656626ae8b9b..b8d25927b96b474d592fd9d1cfa505a10e3a47ed 100644 (file)
@@ -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
index ef5613f98fa41aeafe8fe25163d78f6e9dfeed8b..c7f4f110d39c3583037d5ea96bbd5ca2eee54dfa 100644 (file)
@@ -3,7 +3,7 @@ AROPT = cr
 ifdef ELF_SYSTEM
 export_dynamic = -export-dynamic
 rpath = -R$(libdir)
-shlib_symbolic = -Bsymbolic
+shlib_symbolic = -Wl,-Bsymbolic
 endif
 
 DLSUFFIX = .so
index 2ce2ca8ba1cb8647584f85df32dc00d4f28fee7e..fbcc2e2e4bd7cb6979596ec6b74f9c1097d547b8 100644 (file)
@@ -3,7 +3,7 @@ AROPT = cr
 ifdef ELF_SYSTEM
 export_dynamic = -Wl,-E
 rpath = -R$(libdir)
-shlib_symbolic = -Bsymbolic
+shlib_symbolic = -Wl,-Bsymbolic
 endif
 
 DLSUFFIX = .so