summaryrefslogtreecommitdiff
path: root/usr/src/Makefile.master
diff options
context:
space:
mode:
authoresaxe <none@none>2006-08-11 18:11:49 -0700
committeresaxe <none@none>2006-08-11 18:11:49 -0700
commit96ccc8cb05e8790fcc24931dcb155b76e810295c (patch)
tree56aca851486d7a2dd9066999fe275e83bcfc5891 /usr/src/Makefile.master
parent5988135d82ecba94b97669a9f2b7016b58ad691e (diff)
downloadillumos-gate-96ccc8cb05e8790fcc24931dcb155b76e810295c.tar.gz
5016095 nightly should help determine what really changes from build to build
6404876 uses of __DATE__ / __TIME__ should be purged from ON 6404908 ON builds should employ a static globalization prefix
Diffstat (limited to 'usr/src/Makefile.master')
-rw-r--r--usr/src/Makefile.master17
1 files changed, 14 insertions, 3 deletions
diff --git a/usr/src/Makefile.master b/usr/src/Makefile.master
index 7518009d63..a9d5860eb9 100644
--- a/usr/src/Makefile.master
+++ b/usr/src/Makefile.master
@@ -383,6 +383,14 @@ COPTFLAG64= $($(MACH64)_COPTFLAG)
# (gives them a unique prefix). Disable that.
CNOGLOBAL= -W0,-noglobal
+# Direct the Sun Studio compiler to use a static globalization prefix based on the
+# name of the module rather than something unique. Otherwise, objects
+# will not build deterministically, as subsequent compilations of identical
+# source will yeild objects that always look different.
+#
+# In the same spirit, this will also remove the date from the N_OPT stab.
+CGLOBALSTATIC= -W0,-xglobalstatic
+
# Normally, gcc uses indirect DWARF strings to save space. However,
# this causes relocations that ctfconvert cannot handle. Disable this.
CDWARFSTR= -_gcc=-fno-dwarf2-indirect-strings
@@ -451,11 +459,14 @@ XREGSFLAG = $($(MACH)_XREGSFLAG)
XREGSFLAG64 = $($(MACH64)_XREGSFLAG)
CFLAGS= $(COPTFLAG) $($(MACH)_CFLAGS) $(SPACEFLAG) $(CCMODE) \
- $(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG)
+ $(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG) \
+ $(CGLOBALSTATIC)
CFLAGS64= $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \
- $(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG64)
+ $(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG64) \
+ $(CGLOBALSTATIC)
NATIVE_CFLAGS= $(COPTFLAG) $($(NATIVE_MACH)_CFLAGS) $(CCMODE) \
- $(ILDOFF) $(CERRWARN) $(C99MODE) $($(NATIVE_MACH)_CCUNBOUND)
+ $(ILDOFF) $(CERRWARN) $(C99MODE) $($(NATIVE_MACH)_CCUNBOUND) \
+ $(CGLOBALSTATIC)
DTEXTDOM=-DTEXT_DOMAIN=\"$(TEXT_DOMAIN)\" # For messaging.
DTS_ERRNO=-D_TS_ERRNO