Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/libld/Makefile.targ
          +++ new/usr/src/cmd/sgs/libld/Makefile.targ
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # Copyright 2016 RackTop Systems.
  26   26  # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  27   27  #
  28   28  
  29      -pics/%.o:       ../common/%.c
       29 +pics/%.o:       $(SRCDIR)/common/%.c
  30   30                  $(COMPILE.c) -o $@ $<
  31   31                  $(POST_PROCESS_O)
  32   32  
  33      -pics/%32.o:     ../common/%.c
       33 +pics/%32.o:     $(SRCDIR)/common/%.c
  34   34                  $(COMPILE.c) -o $@ $<
  35   35                  $(POST_PROCESS_O)
  36   36  
  37      -pics/%64.o:     ../common/%.c
       37 +pics/%64.o:     $(SRCDIR)/common/%.c
  38   38                  $(COMPILE.c) -o $@ -D_ELF64 $<
  39   39                  $(POST_PROCESS_O)
  40   40  
  41   41  pics/%32.o:     %.c
  42   42                  $(COMPILE.c) -o $@ $<
  43   43                  $(POST_PROCESS_O)
  44   44  
  45   45  pics/%64.o:     %.c
  46   46                  $(COMPILE.c) -o $@ -D_ELF64 $<
  47   47                  $(POST_PROCESS_O)
  48   48  
  49      -pics/%.o:       $(SGSTOOLS)/common/%.c
       49 +pics/%.o:       $(SGSCOMMON)/%.c
  50   50                  $(COMPILE.c) -o $@ $<
  51   51                  $(POST_PROCESS_O)
  52   52  
  53   53  pics/%.o:       $(VAR_AVLDIR)/%.c
  54   54                  $(COMPILE.c) -o $@ $<
  55   55                  $(POST_PROCESS_O)
  56   56  
  57   57  #
  58   58  # We use the shared elfcap code under usr/src/common/elfcap
  59   59  #
↓ open down ↓ 27 lines elided ↑ open up ↑
  87   87                  $(COMPILE.c) -o $@ -D_ELF64 -DDO_RELOC_LIBLD $<
  88   88                  $(POST_PROCESS_O)
  89   89  
  90   90  
  91   91  $(LIBLINKS):
  92   92                  $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  93   93  
  94   94  delete:
  95   95                  $(RM) $(DYNLIB)
  96   96  
  97      -# Special target for native builds (ie. when we need to build a version of ld
  98      -# to build a version of ld :-).
  99      -
 100      -native:         $(SGSLIBDIR)/$(LIBLINKS)
 101      -
 102   97  $(PICS):        pics
 103      -
 104      -$(SGSLIBDIR)/$(DYNLIB): $(PICS) $(SGSLIBDIR)
 105      -                $(BUILD.SO)
 106      -                $(POST_PROCESS_SO)
 107      -
 108      -$(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
 109      -                @$(RM) $(SGSLIBDIR)/$(LIBLINKS)
 110      -                $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 111   98  
 112   99  include         $(SRC)/lib/Makefile.targ
 113  100  include         $(SRC)/cmd/sgs/Makefile.targ
 114  101  
 115  102  # Derived source and header files (messaging).
 116  103  
 117  104  catalog:        $(BLTMESG)
 118  105  
 119  106  chkmsg:         $(LIBSRCS) $(CHKSRCS)
 120  107                  sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
 121  108  
 122  109  $(BLTDEFS) + \
 123  110  $(BLTDATA):     $(SGSMSGTARG)
 124  111                  $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
 125  112  
 126  113  $(BLTMESG):     $(SGSMSGALL)
 127  114                  $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX