On Linux, add linker flags -Bsymbolic (makes for smaller libraries, at
authorKen Raeburn <raeburn@mit.edu>
Thu, 15 Mar 2007 01:11:40 +0000 (01:11 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 15 Mar 2007 01:11:40 +0000 (01:11 +0000)
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

index b26566a30ed6b7994361b05f0cd9a483c32f3afe..1404d6f5e4ad77611f24cbf0e41a23fb801e302a 100644 (file)
@@ -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