From 8a7f107df48ec9274a280c1d9de587b2002b134d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 15 Mar 2007 01:11:40 +0000 Subject: [PATCH] On Linux, add linker flags -Bsymbolic (makes for smaller libraries, at the cost of being able to override the symbol names we export) and --no-undefined (errors out on shared library generation with undefined symbols). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19229 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/shlib.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/shlib.conf b/src/config/shlib.conf index b26566a30..1404d6f5e 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -369,7 +369,7 @@ mips-*-netbsd*) SHLIBEXT=.so # Linux ld doesn't default to stuffing the SONAME field... # Use objdump -x to examine the fields of the library - LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT) $(LDFLAGS)' + LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),-Bsymbolic,--no-undefined $(LDFLAGS)' # LDCOMBINE_TAIL='-Wl,--version-script binutils.versions && $(PERL) -w $(SRCTOP)/util/export-check.pl $(SHLIB_EXPORT_FILE) $@' SHLIB_EXPORT_FILE_DEP=binutils.versions -- 2.26.2