summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-04-08 11:03:03 +0000
committerKen Raeburn <raeburn@mit.edu>2006-04-08 11:03:03 +0000
commitd85793d8b11e6b6ddac79ed509b5e019ce6e30a1 (patch)
tree99888ce05a1b5525a23dd189c23e95247462e5c3 /src
parentaebb0a39d8b112be4b001d2dfbd40d76edc68e71 (diff)
downloadkrb5-d85793d8b11e6b6ddac79ed509b5e019ce6e30a1.tar.gz
krb5-d85793d8b11e6b6ddac79ed509b5e019ce6e30a1.tar.xz
krb5-d85793d8b11e6b6ddac79ed509b5e019ce6e30a1.zip
* shlib.conf (*-*-linux*): Use linker flag --as-needed when
building shared libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17880 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/config/ChangeLog3
-rw-r--r--src/config/shlib.conf2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/config/ChangeLog b/src/config/ChangeLog
index ccd89e12cc..928874b6d4 100644
--- a/src/config/ChangeLog
+++ b/src/config/ChangeLog
@@ -1,5 +1,8 @@
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.
diff --git a/src/config/shlib.conf b/src/config/shlib.conf
index cc914577d0..cd851ea523 100644
--- a/src/config/shlib.conf
+++ b/src/config/shlib.conf
@@ -349,7 +349,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)'
+ 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