Print this page
lib: move compat links from targetdirs to proper makefiles

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/Makefile.lib
          +++ new/usr/src/lib/Makefile.lib
↓ open down ↓ 231 lines elided ↑ open up ↑
 232  232  
 233  233  #
 234  234  # Define the default ctfdiff invocation used to check a list of types
 235  235  # supplied by a user of a library. The goal is to validate that a given
 236  236  # series of types is the same in both a 32-bit and 64-bit artifact. This
 237  237  # is only defined if we have a 64-bit build to do.
 238  238  #
 239  239  TYPECHECK_LIB32 =               $(TYPECHECK_LIB:%=$(MACH)/%)
 240  240  TYPECHECK_LIB64 =               $(TYPECHECK_LIB:%=$(MACH64)/%)
 241  241  TYPECHECK_LIST=                 $(TYPELIST:%=-T %)
 242      -$(BUILD64)TYPECHECK.lib =       $(CTFDIFF) -t -I $(TYPECHECK_LIST) $(TYPECHECK_LIB32) $(TYPECHECK_LIB64)
      242 +$(BUILD64)TYPECHECK.lib =       $(CTFDIFF) -t -I $(TYPECHECK_LIST) \
      243 +        $(TYPECHECK_LIB32) $(TYPECHECK_LIB64)
 243  244  TYPECHECK =                     $(TYPECHECK_LIB:%=%.typecheck)
      245 +
      246 +# Links we need to create for compatibility
      247 +COMPATLINKS=
      248 +COMPATLINKS64=
      249 +ROOTCOMPATLINKS=$(COMPATLINKS:%=$(ROOT)/%)
      250 +ROOTCOMPATLINKS64=$(COMPATLINKS64:%=$(ROOT)/%)
      251 +
      252 +# So if someone doesn't set the target-specific variable they get a clue
      253 +COMPATLINKTARGET= /__you_didnt_use_COMPATLINKS_properly__
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX