Print this page
7627 Build should be smarter about how SGSPROTO is created
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Kim Shrier <kshrier@racktopsystems.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/libelf/Makefile.targ
          +++ new/usr/src/cmd/sgs/libelf/Makefile.targ
↓ open down ↓ 126 lines elided ↑ open up ↑
 127  127  ###
 128  128  ###wlocks/%64.ll:       ../common/%.c
 129  129  ###     wlcc -D_ELF64 $(CFLAGS) $(CPPFLAGS) -o $@ $<
 130  130  
 131  131  
 132  132  # Special target for native builds (ie. when we need to build a version of ld
 133  133  # to build a version of ld :-).
 134  134  
 135  135  native:         $(SGSLIBDIR)/$(LIBLINKS)
 136  136  
 137      -$(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)
      137 +$(PICS):        pics
      138 +
      139 +$(SGSLIBDIR)/$(DYNLIB): $(PICS) $(SGSLIBDIR)
 138  140                  $(BUILD.SO)
 139  141                  $(POST_PROCESS_SO)
 140  142  
 141  143  $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
 142  144                  -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
 143  145                  $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 144  146  
 145  147  
 146  148  # Derived source and header files (messaging).  Make sure that the sgsmsg
 147  149  # command is constructed - libelf might not be built with the whole sgs.
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX