usr/src/Makefile.master
changeset 2538 b5894d78c55a
parent 2437 63f0565fda5e
child 2543 cee6bd97e41f
equal deleted inserted replaced
2537:0607d7a40022 2538:b5894d78c55a
   381 
   381 
   382 # When -g is used, the compiler globalizes static objects
   382 # When -g is used, the compiler globalizes static objects
   383 # (gives them a unique prefix). Disable that.
   383 # (gives them a unique prefix). Disable that.
   384 CNOGLOBAL= -W0,-noglobal
   384 CNOGLOBAL= -W0,-noglobal
   385 
   385 
       
   386 # Direct the Sun Studio compiler to use a static globalization prefix based on the
       
   387 # name of the module rather than something unique. Otherwise, objects
       
   388 # will not build deterministically, as subsequent compilations of identical
       
   389 # source will yeild objects that always look different.
       
   390 #
       
   391 # In the same spirit, this will also remove the date from the N_OPT stab.
       
   392 CGLOBALSTATIC= -W0,-xglobalstatic
       
   393 
   386 # Normally, gcc uses indirect DWARF strings to save space.  However,
   394 # Normally, gcc uses indirect DWARF strings to save space.  However,
   387 # this causes relocations that ctfconvert cannot handle.  Disable this.
   395 # this causes relocations that ctfconvert cannot handle.  Disable this.
   388 CDWARFSTR=	-_gcc=-fno-dwarf2-indirect-strings
   396 CDWARFSTR=	-_gcc=-fno-dwarf2-indirect-strings
   389 
   397 
   390 # Sometimes we want all symbols and types in debugging information even
   398 # Sometimes we want all symbols and types in debugging information even
   449 
   457 
   450 XREGSFLAG		= $($(MACH)_XREGSFLAG)
   458 XREGSFLAG		= $($(MACH)_XREGSFLAG)
   451 XREGSFLAG64		= $($(MACH64)_XREGSFLAG)
   459 XREGSFLAG64		= $($(MACH64)_XREGSFLAG)
   452 
   460 
   453 CFLAGS=         $(COPTFLAG) $($(MACH)_CFLAGS) $(SPACEFLAG) $(CCMODE) \
   461 CFLAGS=         $(COPTFLAG) $($(MACH)_CFLAGS) $(SPACEFLAG) $(CCMODE) \
   454 		$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG)
   462 		$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG) \
       
   463 		$(CGLOBALSTATIC)
   455 CFLAGS64=       $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \
   464 CFLAGS64=       $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \
   456 		$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG64)
   465 		$(ILDOFF) $(CERRWARN) $(C99MODE) $(CCUNBOUND) $(IROPTFLAG64) \
       
   466 		$(CGLOBALSTATIC)
   457 NATIVE_CFLAGS=	$(COPTFLAG) $($(NATIVE_MACH)_CFLAGS) $(CCMODE) \
   467 NATIVE_CFLAGS=	$(COPTFLAG) $($(NATIVE_MACH)_CFLAGS) $(CCMODE) \
   458 		$(ILDOFF) $(CERRWARN) $(C99MODE) $($(NATIVE_MACH)_CCUNBOUND)
   468 		$(ILDOFF) $(CERRWARN) $(C99MODE) $($(NATIVE_MACH)_CCUNBOUND) \
       
   469 		$(CGLOBALSTATIC)
   459 
   470 
   460 DTEXTDOM=-DTEXT_DOMAIN=\"$(TEXT_DOMAIN)\"	# For messaging.
   471 DTEXTDOM=-DTEXT_DOMAIN=\"$(TEXT_DOMAIN)\"	# For messaging.
   461 DTS_ERRNO=-D_TS_ERRNO
   472 DTS_ERRNO=-D_TS_ERRNO
   462 CPPFLAGS.master=$(DTEXTDOM) $(DTS_ERRNO) \
   473 CPPFLAGS.master=$(DTEXTDOM) $(DTS_ERRNO) \
   463 	$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)
   474 	$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)