]> granicus.if.org Git - postgresql/commitdiff
Shared libraries should not be linked explicitly against -lc on FreeBSD
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 20 Jun 2001 20:25:11 +0000 (20:25 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 20 Jun 2001 20:25:11 +0000 (20:25 +0000)
(see http://mail.gnu.org/pipermail/libtool/2000-July/001824.html).  But
apparently it should still be present with -Bsymbolic.

src/Makefile.shlib
src/makefiles/Makefile.freebsd

index 732d74156866e9684c904eb1f7f966b7239c7dc0..186575814d2a959186202f1889915944c9f598ad 100644 (file)
@@ -6,7 +6,7 @@
 # Copyright (c) 1998, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.51 2001/05/07 20:43:28 petere Exp $
+#    $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.52 2001/06/20 20:25:11 petere Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -141,7 +141,6 @@ ifeq ($(PORTNAME), freebsd)
   ifdef ELF_SYSTEM
     shlib              := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
     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
index c7f4f110d39c3583037d5ea96bbd5ca2eee54dfa..9f270c37fad62726aab19bce91674d5373b074dd 100644 (file)
@@ -3,7 +3,7 @@ AROPT = cr
 ifdef ELF_SYSTEM
 export_dynamic = -export-dynamic
 rpath = -R$(libdir)
-shlib_symbolic = -Wl,-Bsymbolic
+shlib_symbolic = -Wl,-Bsymbolic -lc
 endif
 
 DLSUFFIX = .so