Print this page
10593 illumos build should not use kernel modules as link-editor input

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/serrano/Makefile
          +++ new/usr/src/uts/sun4u/serrano/Makefile
↓ open down ↓ 94 lines elided ↑ open up ↑
  95   95  clobber:        $(CLOBBER_DEPS)
  96   96  
  97   97  lint:           $(LINT_DEPS)
  98   98  
  99   99  modlintlib:     $(MODLINTLIB_DEPS)
 100  100  
 101  101  clean.lint:     $(CLEAN_LINT_DEPS)
 102  102  
 103  103  install:        $(INSTALL_DEPS)
 104  104  
 105      -$(CPULIB):      $(BINARY)
 106      -        $(BUILD.SO) $(BINARY)
      105 +$(CPULIB):      $(OBJECTS)
      106 +        $(BUILD.SO) $(OBJECTS)
 107  107  
 108  108  $(SYM_MOD):     $(UNIX_O) $(CPULIB)
 109  109          @echo "resolving symbols against unix.o"
 110  110          @(cd $(UNIX_DIR); pwd; \
 111  111              CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
 112  112  
 113  113  $(ROOTSOFTLINKS): $(ROOTMODULE)
 114  114          $(RM) $@; $(SYMLINK) $(MODULE) $@
 115  115  
 116  116  #       Include common targets.
↓ open down ↓ 4 lines elided ↑ open up ↑
 121  121  # For now, disable these lint checks; maintainers should endeavor
 122  122  # to investigate and remove these for maximum lint coverage.
 123  123  # Please do not carry these forward to new Makefiles.
 124  124  #
 125  125  LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
 126  126  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
 127  127  LINTTAGS        += -erroff=E_STATIC_UNUSED
 128  128  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
 129  129  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
 130  130  
 131      -CERRWARN        += -_gcc=-Wno-parentheses
 132      -CERRWARN        += -_gcc=-Wno-uninitialized
 133      -CERRWARN        += -_gcc=-Wno-type-limits
 134      -CERRWARN        += -_gcc=-Wno-clobbered
      131 +CERRWARN        += -_gcc=-Wno-parentheses
      132 +CERRWARN        += -_gcc=-Wno-uninitialized
      133 +CERRWARN        += -_gcc=-Wno-type-limits
      134 +CERRWARN        += -_gcc=-Wno-clobbered
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX