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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy