make-rules/shared-macros.mk
changeset 170 14cadb780400
parent 166 db8a55996482
child 172 093198acf7d4
--- a/make-rules/shared-macros.mk	Tue Apr 05 12:47:49 2011 -0700
+++ b/make-rules/shared-macros.mk	Tue Apr 05 21:26:34 2011 -0700
@@ -408,6 +408,9 @@
 # make sure all symbols are defined.
 LD_Z_DEFS =		-z defs
 
+# eliminate unreferenced dynamic dependencies
+LD_Z_IGNORE =		-z ignore
+
 # use direct binding
 LD_B_DIRECT =		-Bdirect
 
@@ -440,7 +443,7 @@
 # libraries to this macro, as it will apply to everything linked during the
 # component build.
 LD_OPTIONS +=	$(LD_MAP_NOEXSTK) $(LD_MAP_NOEXDATA.$(MACH)) \
-		$(LD_MAP_PAGEALIGN) $(LD_B_DIRECT)
+		$(LD_MAP_PAGEALIGN) $(LD_B_DIRECT) $(LD_Z_IGNORE)
 
 # Environment variables and arguments passed into the build and install
 # environment(s).  These are the initial settings.