Use -dead_strip when linking dynamic libraries on Darwin
authorKen Raeburn <raeburn@mit.edu>
Wed, 9 Jul 2008 20:48:48 +0000 (20:48 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 9 Jul 2008 20:48:48 +0000 (20:48 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20504 dc483132-0cff-0310-8789-dd5450dbe970

src/config/shlib.conf

index 80c4d8ccc9a1227ff024e2b6796a8000a3bdfa36..95f669cf517082a8a5d16d01573f3298430407be 100644 (file)
@@ -330,7 +330,7 @@ mips-*-netbsd*)
        SHLIBEXT=.dylib
        DYNOBJEXT=.so
        SHLIB_EXPORT_FILE_DEP=darwin.exports
-       LDCOMBINE='$(CC) -undefined error -dynamiclib -compatibility_version $(LIBMAJOR) -current_version $(LIBMAJOR).$(LIBMINOR) -install_name "$(KRB5_LIBDIR)/$(LIBPREFIX)$(LIBBASE)$(SHLIBVEXT)" $(CFLAGS) $(LDFLAGS)'
+       LDCOMBINE='$(CC) -undefined error -dead_strip -dynamiclib -compatibility_version $(LIBMAJOR) -current_version $(LIBMAJOR).$(LIBMINOR) -install_name "$(KRB5_LIBDIR)/$(LIBPREFIX)$(LIBBASE)$(SHLIBVEXT)" $(CFLAGS) $(LDFLAGS)'
        # The -dylib_file option tells the linker where to find indirect dependent
        # libraries, without adding them to the dependency list.  We need this because
        # the direct dependent libraries contain the pathname where the indirect