Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 90e2663

Browse files
committed
Shared libraries should not be linked explicitly against -lc on FreeBSD
(see http://mail.gnu.org/pipermail/libtool/2000-July/001824.html). But apparently it should still be present with -Bsymbolic.
1 parent 7fdd76c commit 90e2663

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Makefile.shlib

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.51 2001/05/07 20:43:28 petere Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.52 2001/06/20 20:25:11 petere Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -141,7 +141,6 @@ ifeq ($(PORTNAME), freebsd)
141141
ifdef ELF_SYSTEM
142142
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
143143
LINK.shared = $(COMPILER) -shared -Wl,-x,-soname,$(soname)
144-
SHLIB_LINK += -lc
145144
else
146145
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
147146
LINK.shared = $(LD) -x -Bshareable -Bforcearchive

src/makefiles/Makefile.freebsd

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AROPT = cr
33
ifdef ELF_SYSTEM
44
export_dynamic = -export-dynamic
55
rpath = -R$(libdir)
6-
shlib_symbolic = -Wl,-Bsymbolic
6+
shlib_symbolic = -Wl,-Bsymbolic -lc
77
endif
88

99
DLSUFFIX = .so

0 commit comments

Comments
 (0)