changeset 2745:4634a7101488

6467071 mdb modules are not finding expected static declarations in userland objects
author petede
date Fri, 15 Sep 2006 13:00:46 -0700
parents 0a6f00b6a209
children 0e4e3987abed
files usr/src/Makefile.master
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/Makefile.master	Fri Sep 15 11:26:15 2006 -0700
+++ b/usr/src/Makefile.master	Fri Sep 15 13:00:46 2006 -0700
@@ -279,7 +279,10 @@
 CCREGSYM=		-Wc,-Qiselect-regsym=0
 CCCREGSYM=		-Qoption cg -Qiselect-regsym=0
 
-# prevent static symbols being optimized out
+# Prevent the removal of static symbols by the SPARC code generator (cg).
+# The x86 code generator (ube) does not remove such symbols and as such
+# using this workaround is not applicable for x86.
+#
 CCSTATICSYM=		-Wc,-Qassembler-ounrefsym=0
 #
 # generate 32-bit addresses in the v9 kernel. Saves memory.
@@ -359,7 +362,7 @@
 
 # In most places, assignments to these macros should be appended with +=
 # (CPPFLAGS.master allows values to be prepended to CPPFLAGS).
-sparc_CFLAGS=	$(sparc_XARCH)
+sparc_CFLAGS=	$(sparc_XARCH) $(CCSTATICSYM)
 sparcv9_CFLAGS=	$(sparcv9_XARCH) -dalign $(CCVERBOSE) $(V9ABIWARN) $(CCREGSYM) \
 		$(CCSTATICSYM)
 i386_CFLAGS=	$(i386_XARCH)