Print this page
9128 cw(1onbld) should be able to run multiple shadows
9129 file-locking tests shouldn't build multiple source files in one compiler invocation
9130 DTrace tst.gcc.d isn't useful
9132 cw(1onbld) shouldn't shadow pure preprocessing
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed? by: Yuri Pankov <yuripv@yuripv.net>
Reviewed? by: Robert Mustacchi <rm@joyent.com>
Reviewed? by: Jason King <jason.king@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/common/mapfiles/gen/Makefile
          +++ new/usr/src/common/mapfiles/gen/Makefile
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  26   26  #
  27   27  
  28   28  include         $(SRC)/Makefile.master
  29   29  
  30      -FILES=  \
  31      -                $(MACH)_cc_map.noexeglobs \
  32      -                $(MACH)_gcc_map.noexeglobs
  33      -
  34      -$(BUILD64)FILES += \
  35      -                $(MACH64)_cc_map.noexeglobs \
  36      -                $(MACH64)_gcc_map.noexeglobs
       30 +
       31 +$(__GNUC)FILES= $(MACH)_gcc_map.noexeglobs
       32 +$(__SUNC)FILES= $(MACH)_cc_map.noexeglobs
       33 +
       34 +$(__GNUC)$(BUILD64)FILES += $(MACH64)_gcc_map.noexeglobs
       35 +$(__SUNC)$(BUILD64)FILES += $(MACH64)_cc_map.noexeglobs 
  37   36  
  38   37  SYMS1=          syms.1
  39   38  SYMS2=          syms.2
  40   39  MAIN1=          main.1
  41   40  MAIN2=          main.2
  42   41  
  43   42  TEMPLATE1=      map.noexeglobs.1.template
  44   43  TEMPLATE2=      map.noexeglobs.2.template
  45   44  
  46   45  all install:    $(FILES)
↓ open down ↓ 19 lines elided ↑ open up ↑
  66   65  # the mapfile for a specific compilation environment.
  67   66  #
  68   67  # Here, template mapfiles are used to generate a number of compilation specific
  69   68  # mapfiles.  These mapfiles are referenced by components of the build through
  70   69  # the MAPFILE.NGB macro defined in Makefile.master.  These dynamically created
  71   70  # mapfiles are not delivered into the $ROOT area, and therefore are not
  72   71  # delivered as packaged components of the OSNet.
  73   72  
  74   73  $(MACH)_cc_map.noexeglobs :=    LINK =  $(LINK.c)
  75   74  $(MACH64)_cc_map.noexeglobs :=  LINK =  $(LINK64.c)
  76      -
  77      -$(MACH)_gcc_map.noexeglobs :=   CC =    $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
  78   75  $(MACH)_gcc_map.noexeglobs :=   LINK =  $(LINK.c)
  79      -$(MACH64)_gcc_map.noexeglobs := CC =    $(ONBLD_TOOLS)/bin/$(MACH)/cw -_gcc
  80   76  $(MACH64)_gcc_map.noexeglobs := LINK =  $(LINK64.c)
  81      - 
       77 +
  82   78  # This generic target creates two dynamic executables from an empty "main"
  83   79  # program.  These objects are not executed, but are analyzed to determine the
  84   80  # global symbols each provides.
  85   81  #
  86   82  # The first executable demotes a family of known interfaces to local and allows
  87   83  # all other symbol definitions to remain global.  This executables provides the
  88   84  # base for discovering all symbol definitions provided by the various
  89   85  # compilation environments.  The second executable demotes all symbols to
  90   86  # locals.  Within both executables, some symbols remain globals (_end, _etext,
  91   87  # etc.) as the link-editor has special knowledge of these symbols and their
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX