Makefile.master (7e3dbbac48aaad67ac841ba479a67a2081d6a02b) | Makefile.master (299e09dec5d1f56c12f76421d18079871b467bfc) |
---|---|
1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 487 unchanged lines hidden (view full) --- 496# In the same spirit, this will also remove the date from the N_OPT stab. 497CGLOBALSTATIC= -W0,-xglobalstatic 498 499# Sometimes we want all symbols and types in debugging information even 500# if they aren't used. 501CALLSYMS= -W0,-xdbggen=no%usedonly 502 503# | 1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 487 unchanged lines hidden (view full) --- 496# In the same spirit, this will also remove the date from the N_OPT stab. 497CGLOBALSTATIC= -W0,-xglobalstatic 498 499# Sometimes we want all symbols and types in debugging information even 500# if they aren't used. 501CALLSYMS= -W0,-xdbggen=no%usedonly 502 503# |
504# Default debug format for Sun Studio 11 is dwarf, so force it to 505# generate stabs. | 504# We force the compilers to generate the debugging information best understood 505# by the CTF tools. With Sun Studio this is stabs due to bugs in the Studio 506# compilers. With GCC this is DWARF v2. |
506# | 507# |
507DEBUGFORMAT= -xdebugformat=stabs | 508DEBUGFORMAT= -_cc=-xdebugformat=stabs -_gcc=-gdwarf-2 |
508 509# | 509 510# |
510# Flags used to build in debug mode for ctf generation. Bugs in the Devpro 511# compilers currently prevent us from building with cc-emitted DWARF. | 511# Ask the compiler to include debugging information |
512# | 512# |
513CTF_FLAGS_sparc = -g -Wc,-Qiselect-T1 $(CSTD) $(CNOGLOBAL) $(CDWARFSTR) 514CTF_FLAGS_i386 = -g $(CSTD) $(CNOGLOBAL) $(CDWARFSTR) | 513CCGDEBUG= -g $(DEBUGFORMAT) |
515 | 514 |
515# 516# Flags used to build in debug mode for ctf generation. 517# 518CTF_FLAGS_sparc = $(CCGDEBUG) -Wc,-Qiselect-T1 $(CSTD) $(CNOGLOBAL) 519CTF_FLAGS_i386 = $(CCGDEBUG) $(CSTD) $(CNOGLOBAL) 520 |
|
516CTF_FLAGS_sparcv9 = $(CTF_FLAGS_sparc) 517CTF_FLAGS_amd64 = $(CTF_FLAGS_i386) 518 519# Sun Studio produces broken userland code when saving arguments. 520$(__GNUC)CTF_FLAGS_amd64 += $(SAVEARGS) 521 | 521CTF_FLAGS_sparcv9 = $(CTF_FLAGS_sparc) 522CTF_FLAGS_amd64 = $(CTF_FLAGS_i386) 523 524# Sun Studio produces broken userland code when saving arguments. 525$(__GNUC)CTF_FLAGS_amd64 += $(SAVEARGS) 526 |
522CTF_FLAGS_32 = $(CTF_FLAGS_$(MACH)) $(DEBUGFORMAT) 523CTF_FLAGS_64 = $(CTF_FLAGS_$(MACH64)) $(DEBUGFORMAT) | 527CTF_FLAGS_32 = $(CTF_FLAGS_$(MACH)) 528CTF_FLAGS_64 = $(CTF_FLAGS_$(MACH64)) |
524CTF_FLAGS = $(CTF_FLAGS_32) 525 526# 527# Flags used with genoffsets 528# | 529CTF_FLAGS = $(CTF_FLAGS_32) 530 531# 532# Flags used with genoffsets 533# |
529GOFLAGS = $(CALLSYMS) $(CDWARFSTR) | 534GENOFFSETS_FLAGS = $(CALLSYMS) |
530 531OFFSETS_CREATE = $(GENOFFSETS) -s $(CTFSTABS) -r $(CTFCONVERT) \ | 535 536OFFSETS_CREATE = $(GENOFFSETS) -s $(CTFSTABS) -r $(CTFCONVERT) \ |
532 $(CW) --noecho $(CW_CC_COMPILERS) -- $(GOFLAGS) $(CFLAGS) $(CPPFLAGS) | 537 $(CW) --noecho $(CW_CC_COMPILERS) -- $(GENOFFSETS_FLAGS) \ 538 $(CFLAGS) $(CPPFLAGS) |
533 534OFFSETS_CREATE64 = $(GENOFFSETS) -s $(CTFSTABS) -r $(CTFCONVERT) \ | 539 540OFFSETS_CREATE64 = $(GENOFFSETS) -s $(CTFSTABS) -r $(CTFCONVERT) \ |
535 $(CW) --noecho $(CW_CC_COMPILERS) -- $(GOFLAGS) $(CFLAGS64) $(CPPFLAGS) | 541 $(CW) --noecho $(CW_CC_COMPILERS) -- $(GENOFFSETS_FLAGS) \ 542 $(CFLAGS64) $(CPPFLAGS) |
536 537# 538# tradeoff time for space (smaller is better) 539# 540sparc_SPACEFLAG = -xspace -W0,-Lt 541sparcv9_SPACEFLAG = -xspace -W0,-Lt 542i386_SPACEFLAG = -xspace 543amd64_SPACEFLAG = --- 38 unchanged lines hidden (view full) --- 582# 583CUSERFLAGS = 584CUSERFLAGS64 = $(CUSERFLAGS) 585CCUSERFLAGS = 586CCUSERFLAGS64 = $(CCUSERFLAGS) 587 588CSOURCEDEBUGFLAGS = 589CCSOURCEDEBUGFLAGS = | 543 544# 545# tradeoff time for space (smaller is better) 546# 547sparc_SPACEFLAG = -xspace -W0,-Lt 548sparcv9_SPACEFLAG = -xspace -W0,-Lt 549i386_SPACEFLAG = -xspace 550amd64_SPACEFLAG = --- 38 unchanged lines hidden (view full) --- 589# 590CUSERFLAGS = 591CUSERFLAGS64 = $(CUSERFLAGS) 592CCUSERFLAGS = 593CCUSERFLAGS64 = $(CCUSERFLAGS) 594 595CSOURCEDEBUGFLAGS = 596CCSOURCEDEBUGFLAGS = |
590$(SRCDBGBLD)CSOURCEDEBUGFLAGS = -g -xs 591$(SRCDBGBLD)CCSOURCEDEBUGFLAGS = -g -xs | 597$(SRCDBGBLD)CSOURCEDEBUGFLAGS = $(CCGDEBUG) -xs 598$(SRCDBGBLD)CCSOURCEDEBUGFLAGS = $(CCGDEBUG) -xs |
592 593CFLAGS= $(COPTFLAG) $($(MACH)_CFLAGS) $(SPACEFLAG) $(CCMODE) \ 594 $(ILDOFF) $(CERRWARN) $(CSTD) $(CCUNBOUND) $(IROPTFLAG) \ 595 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \ 596 $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS) 597CFLAGS64= $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \ 598 $(ILDOFF) $(CERRWARN) $(CSTD) $(CCUNBOUND) $(IROPTFLAG64) \ 599 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \ --- 621 unchanged lines hidden --- | 599 600CFLAGS= $(COPTFLAG) $($(MACH)_CFLAGS) $(SPACEFLAG) $(CCMODE) \ 601 $(ILDOFF) $(CERRWARN) $(CSTD) $(CCUNBOUND) $(IROPTFLAG) \ 602 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \ 603 $(CSOURCEDEBUGFLAGS) $(CUSERFLAGS) 604CFLAGS64= $(COPTFLAG64) $($(MACH64)_CFLAGS) $(SPACEFLAG64) $(CCMODE64) \ 605 $(ILDOFF) $(CERRWARN) $(CSTD) $(CCUNBOUND) $(IROPTFLAG64) \ 606 $(CGLOBALSTATIC) $(CCNOAUTOINLINE) $(CCNOREORDER) \ --- 621 unchanged lines hidden --- |