building shared libraries.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17880
dc483132-0cff-0310-8789-
dd5450dbe970
2006-04-08 Ken Raeburn <raeburn@mit.edu>
+ * shlib.conf (*-*-linux*): Use linker flag --as-needed when
+ building shared libraries.
+
* pre.in (ALL_CFLAGS): Always define KRB5_DEPRECATED and
KRB5_PRIVATE.
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)'
+ LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--as-needed'
#
LDCOMBINE_TAIL='-Wl,--version-script binutils.versions && $(PERL) -w $(SRCTOP)/util/export-check.pl $(SHLIB_EXPORT_FILE) $@'
SHLIB_EXPORT_FILE_DEP=binutils.versions