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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/nsswitch/files/Makefile.com
          +++ new/usr/src/lib/nsswitch/files/Makefile.com
↓ open down ↓ 54 lines elided ↑ open up ↑
  55   55  # install this library in the root filesystem
  56   56  include ../../../Makefile.rootfs
  57   57  
  58   58  CPPFLAGS +=     -I../../../common/inc
  59   59  LINTFLAGS +=    -erroff=E_GLOBAL_COULD_BE_STATIC2
  60   60  LINTFLAGS64 +=  -erroff=E_GLOBAL_COULD_BE_STATIC2
  61   61  
  62   62  LDLIBS +=       -lnsl
  63   63  DYNLIB1 =       nss_files.so$(VERS)
  64   64  
       65 +COMPATLINKS=    /usr/lib/$(DYNLIB1) /etc/lib/$(DYNLIB1)
       66 +COMPATLINKS64=  /usr/lib/$(MACH64)/$(DYNLIB1)
       67 +
       68 +$(ROOT)/usr/lib/$(DYNLIB1) := COMPATLINKTARGET=../../lib/$(DYNLIB1)
       69 +$(ROOT)/usr/lib/$(MACH64)/$(DYNLIB1):= \
       70 +        COMPATLINKTARGET=../../../lib/$(MACH64)/$(DYNLIB1)
       71 +$(ROOT)/usr/lib/$(DYNLIB1) := COMPATLINKTARGET=../../lib/$(DYNLIB1)
       72 +$(ROOT)/usr/lib/$(MACH64)/$(DYNLIB1):= \
       73 +        COMPATLINKTARGET=../../../lib/$(MACH64)/$(DYNLIB1)
       74 +
       75 +$(ROOT)/etc/lib/$(DYNLIB1) := COMPATLINKTARGET= ../../lib/$(DYNLIB1)
       76 +
  65   77  all: $(DYNLIB1)
       78 +
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX