]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
* shlib.conf (*-*-linux*): Use linker flag --as-needed when
authorKen Raeburn <raeburn@mit.edu>
Sat, 8 Apr 2006 11:03:03 +0000 (11:03 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 8 Apr 2006 11:03:03 +0000 (11:03 +0000)
building shared libraries.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17880 dc483132-0cff-0310-8789-dd5450dbe970

src/config/ChangeLog
src/config/shlib.conf

index ccd89e12cc6ccdefadddf716c83c2762e7c60ab7..928874b6d43a41b6fc2cd4042069fe4686e3c7f6 100644 (file)
@@ -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.
 
index cc914577d017a895f5566d0e596658eb0047ac9e..cd851ea523d50999d77bd6eac298199ff06e4344 100644 (file)
@@ -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